You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Is it doable without too much hacking and whacking of code?
I understand this change would entail moving the include for prodshowtabs.php from ECOM_Prod.php to the include file prodshow.php above the add to cart code. I'm just not sure how to do that.
It makes more sense for us to have all the product information about the "add to cart" decision point.
Offline
At the very top of prodshowtabs.php, right after the opening PHP tag, add the following to stop the include from showing anything:
return 1;
Then add the pertinent content from prodshowtabs.php into prodshow.php directly wherever/however you like.
Offline
thank you!
Offline
Nick, can you help me on this topic please as also want to move the tabs above the add to cart but unsure exactly what code to cut or copy / paste into the prodshow.php
Offline
MickIngram wrote:
Nick, can you help me on this topic please as also want to move the tabs above the add to cart but unsure exactly what code to cut or copy / paste into the prodshow.php
In {private}/apps/ecom/ECOM_Prod/ECOM_Prod.php, in the prodshow() function, remove:
$this->CORE_Display->include_file('ecom','prodshowtabs.php');
Then in {private}/apps/ecom/ECOM/includes/prodshow.php, add:
$this->include_file('ecom','prodshowtabs.php');
Wherever you want it. Note that pushing down add to cart / purchase options is generally a bad idea. They should be as close to the fold or above as possible.
Offline