- This topic has 2 replies, 2 voices, and was last updated 12 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › changing location of "add to cart" and variants in fancy 2?
hi all,
I’ve already made a few minor adjustments to the fancy 2 display option but ideally i would like to also swap the locations of the “add to cart” button and the variants. Basically, I would like to have the variants listed on the left of the footer box and the “add to cart” on the right of the box.
But I cannot seem to find where these items are referenced in the code. I am looking at the function show_product_fancy_style2 in the eStore_misc_functions.php file.
Any thoughts or guideance?
Thanks
Graham
Hi Graham,
To move the button to the right of the variants you will need to modify the function get_button_code_fancy2_for_element section in the eStore_misc_functions.php file as follows:
Find and then move this piece of code:
$replacement .= get_input_button($ret_product->button_image_url);
$replacement .= " ";
To the line directly after this piece of code:
$var_output = get_variation_and_input_code($ret_product,$line_break);
if (!empty($var_output))
{
$replacement .= " ";
$replacement .= $var_output;
}
Excellent. That works a treat.
Thanks for the quick response.
Graham