Moshhegh.Faghdan Posted July 3, 2018 Share Posted July 3, 2018 i want to sell some product with certain reference code when my website is in catalog mode , i try to change every $PS_CATALOG_MODE conditions to if ($product->reference == "special") but when user click on add to card button it cause error and product what is best way to do this?? Link to comment Share on other sites More sharing options...
Moshhegh.Faghdan Posted July 4, 2018 Author Share Posted July 4, 2018 i solve part of problem with add below code to product.tpl {if ($PS_CATALOG_MODE && $product->reference == "giftCards")} {$PS_CATALOG_MODE = null} {/if} code work fine and buy_block show for product with giftCards reference but when user click on Add to Cart button ,it redirect to /cart page with error i think problem is ajax disabled in Catalog mode i'm trying to find way to enable AJAX CART in view can anyone help me? Link to comment Share on other sites More sharing options...
NemoPS Posted July 7, 2018 Share Posted July 7, 2018 There are several places that will prevent ordering when catalog mode is enabled, not just the product/product list pages. You could try applying my method: http://nemops.com/private-orders-shop-in-prestashop-and-thirty-bees-part-1-manual-customer-verification/ With your conditions 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