pinkequine Posted August 21, 2013 Posted August 21, 2013 Hi I want to set up different product layouts for different products. Can anyone tell me where/how I could code this in So if product A - use this layout product B - use this layout Everything else - use this layout. What would be the best way to do this? Any help would be appreciated. I am a bit of a php dummy so if anyone could advise what the code would be that would be brilliant thx in advance
♥bruyndoncx Posted August 21, 2013 Posted August 21, 2013 the best way depends on how different your product layouts are, ideally it should just be adding some css left and right,. how will you distinguish which layout to use ? category based, manufacturer, or other database field, or something completely new ? KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt
pinkequine Posted August 21, 2013 Author Posted August 21, 2013 Hi It would be products ID, basically I have two bespoke product layouts and regular product layouts. The bespoke ones are customizable and where the image would be on the left, its completely replaced by a div containing 2 tables and various select boxes for colour options. it runs a jquery and presents an image result based on which colours the customer chooses. the difference between the products is basically the area where the picture would be - e.g on the left, but how would I condition whats displayed, either image or the bespoke div. Any guidance would be much appreciated, I've messed around with product_info.php all day and got nowhere.
pinkequine Posted August 21, 2013 Author Posted August 21, 2013 so I want to say basically if products id = 35 show bespoke div1 and hide PiGal (which is where my regular image is) if products id = 38 show bespoke div2 and hide PiGal else show PiGal Hope that makes sense.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.