isixhosting Posted May 1, 2020 Share Posted May 1, 2020 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??? 😉 it should be... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 1, 2020 Share Posted May 1, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
isixhosting Posted May 1, 2020 Author Share Posted May 1, 2020 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? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.