Jump to content

Displaying product groups on custom pages?


Saulyx

Recommended Posts

Hey everyone,

 

I am in process of adding 'packages' page for my template, however ran into a bit of a dilemma, is there a way to display specific product groups that I have created in the back end? lets say group 1, and then just do a for each statement?

 

Also another question(I have googled however the answers dont match any of the tempalte files(default by whmcs or custom by other developers)), where could I find the template files for cart.php? I don't mind if I have to copy one from whmcs original tempaltes andcustomise it, however as of right now I just can't find it

 

 

Thanks,

S

Edited by Saulyx
Link to comment
Share on other sites

Thanks guys, however the first question still isn't answered, I dont want to put the products into the page staticly and then just have order button add it to the cart, I need it to display packages in a group dinamicly, so some sort of foreach statment? like you have on order page where it lists out all the products and groups

e.g. in the order form we have

 

{foreach key=num item=productgroup from=$productgroups}

{if $gid eq $productgroup.gid}

<strong>{$productgroup.name}</strong> |

{else} <a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}">{$productgroup.name}</a> |

{/if}

{/foreach}

 

to list out the group names, now what I need is the ability to access that data(as on my page(template page) I can't so i'm guessing its order form specific?)

Edited by Saulyx
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