Jump to content

How to I get category breadcrumb path in blockcart (ajax)


Recommended Posts

Hi

I am working with the two files:
/themes/XXXXX/modules/blockcart/blockcart-json.tpl
/themes/XXXXX/js/modules/blockcart/ajax-cart.js

 

I am trying to get the Tools:getPath(ID_CATEGORY_DEFAULT) in the tpl file so I can fetch it in my ajax-cart.js file.

 

I can see that it is possible to call a function thrugh smarty, but I can not figure out how.

 

I can see this example workes:

{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|addslashes|replace:'\\\'':'\''}

 

But how can I access Tools:getPath()?

 

I need the breadcrumb so I can add Facebook Dynamic Product Ads to my webshop.

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...