Guy Verville Posted November 26, 2014 Share Posted November 26, 2014 Hi, We are thinking using PW to do a site. One of the perequisites will be, in phase 2, a simple cart. I am aware of the Shop-for-Processwire module. However, it is not marked as 2.5 compatible. Have you exeperienced any trouble using it with 2.5? Link to comment Share on other sites More sharing options...
Alexander Posted November 26, 2014 Share Posted November 26, 2014 @Guy Verville, I played a lot with Shop-for-Processwire with PW 2.5.7 dev without any issues. 3 Link to comment Share on other sites More sharing options...
Guy Verville Posted November 26, 2014 Author Share Posted November 26, 2014 Merci Alexander. Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted November 27, 2014 Share Posted November 27, 2014 @Alexander - Could you please share your experience with the module? If you got time. Link to comment Share on other sites More sharing options...
ukyo Posted December 2, 2014 Share Posted December 2, 2014 I am using this module with 2.5.10 dev version and i see 1 issue for updating current cart not working, maybe it causing from my mods. I have some modifications for form validations and call custom view files. Link to comment Share on other sites More sharing options...
Mass Harry Posted January 23, 2015 Share Posted January 23, 2015 shop is processwie easy brother Link to comment Share on other sites More sharing options...
tuxy Posted February 19, 2015 Share Posted February 19, 2015 Hello, I installed the shop-module. - Adding the sc_price and sc_qty to my product-template. The product-template has no template-file, because I made a (parent) list products.php This list works, also displays the 'sc_price' for each product. I mean this code below generates a 'buy'-button? echo $modules->get("ShoppingCart")->renderAddToCart(); I put this in my products.php template: <?php $products = $pages->find("template=product"); foreach($products as $product) { echo "<h3>{$product->title}</h3>"; echo "<p>{$product->sc_price}</p>"; echo $modules->get("ShoppingCart")->renderAddToCart(); }; ?> But it don't show a 'buy'-button or whatever Sorry, i'm a newbie, what do i wrong?? Who can help me? Is there a good tutorial with screenshots or video-tutorial how setup this modules(s)? At this moment only the ShoppingCart-module is installed. Grtz, Christophe Link to comment Share on other sites More sharing options...
BitPoet Posted February 19, 2015 Share Posted February 19, 2015 Pass the product to renderAddToCart: echo $modules->get("ShoppingCart")->renderAddToCart($product); The method tries to use the current page as the product page for which to render the button if none is passed as its argument, but since you're calling it from a non-product page without an sc_price field, it doesn't find anything to render. 1 Link to comment Share on other sites More sharing options...
tuxy Posted February 23, 2015 Share Posted February 23, 2015 Pass the product to renderAddToCart: echo $modules->get("ShoppingCart")->renderAddToCart($product); The method tries to use the current page as the product page for which to render the button if none is passed as its argument, but since you're calling it from a non-product page without an sc_price field, it doesn't find anything to render. Hi BitPoet, Thanks for your advice. I try it! Regards, Christophe Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now