Jump to content

show specific Product when site is in cataloge mode


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...