javascript - big commerce stencil product images -


i can default product image 'product card model'. there way second gallery image? need image path hover over.

or alternatively, anyway pass additional image url product card?

  • this specific bigcommerce stencil platform , product objects map accessed via handelbars. https://goo.gl/7d1cvk

the common product card model has 'image' attribute. don't see attribute list images. i'd second gallery image (for hover image) - without expression i'm wondering if there way second product image.

  • cheers

retrieving images products within context of category, brand, or search page @ page load time not supported. in order retrieve images specific product must within context of product.

currently way retrieve images product loading product details page, or making ajax request specific product context target product id available.

the ajax solution way pull images product category, brand, or search context. solution implemented stencil utils package, can call stencilutils.api.product.getbyid(productid, callback), , wish resulting data.

take @ our quick view implementation better idea of how these ajax calls work, keeping in mind our core theme uses module system import stencil utils.

https://github.com/bigcommerce/stencil/blob/master/assets/js/theme/global/quick-view.js#l18

ps - if not stencil access developer, might not have access link. we're in process of sorting out our open source requirements.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -