Jump to content

Calling products with Smarty


danfelbm

Recommended Posts

Hey there,

 

I saw the documentation, where indicates how to call payment gateways for example, so I tried calling a product, with this:

 

{if $product.name eq "lala"}

{$product.name}

{/if}

 

Doing a foreach first.

{foreach key=cid item=product from=$products}

 

But now I don´t get how to call another products because I can call only some products and I don´t know why :S... It only works with some products, not all products, someone knows how can I call a product? is there any documentation to can do this?.... is there any way to call them by their IDs? I tried if $product.id eq "1" but it doesn´t works :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated