Jump to content

Dropdown menu on "cart.tpl."


Recommended Posts

Hi, here is a scenario:

1. from the main, or sidebar menu, you choose a product group e.g. "Shared Hosting"
2. a page will open with a list of avaiable plans in this group (e.g. 3 shared plans)
3. if you click on "Order" button of a product, you will be redirected to the product configuration page...

And here is no chance to switch to another "plan" in the same group, you have to start from "scratch" that means "product group > choose product"

The question is: how can I add a dropdown field with products of the same group to the cart template?

Any help guys? @brian! maybe???  😉

screenshot-13_36_06(1).thumb.jpg.fa67bc14bd56e46299cf0efb1264e6f7.jpg

it should be...

screenshot-13_36_06(2).thumb.jpg.e630f7f14441f679893c4b90d2d29ed1.jpg

Link to comment
Share on other sites

1 hour ago, isixhosting said:

The question is: how can I add a dropdown field with products of the same group to the cart template?

almost certainly you're going to need a hook because if memory serves, when you get to the configure product stage, the template won't have access to the other products in the current product group - only the current product.

so it would be a query to the tblproducts table get the product names & ids of the products in that current group and return the result as an array... then it's a case of creating a foreach loop in the template to run through that array and create the dropdown options.

Link to comment
Share on other sites

3 hours ago, brian! said:

almost certainly you're going to need a hook because if memory serves, when you get to the configure product stage, the template won't have access to the other products in the current product group - only the current product.

so it would be a query to the tblproducts table get the product names & ids of the products in that current group and return the result as an array... then it's a case of creating a foreach loop in the template to run through that array and create the dropdown options.

Hi @brian!, could you help me with pls?

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