Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

changing location of "add to cart" and variants in fancy 2?

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?

  • This topic has 2 replies, 2 voices, and was last updated 13 years, 6 months ago by gg1965.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 19, 2011 at 11:04 pm #5084
    gg1965
    Member

    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

    December 20, 2011 at 12:47 am #39883
    Peter
    Member

    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;

    }

    December 20, 2011 at 3:01 am #39884
    gg1965
    Member

    Excellent. That works a treat.

    Thanks for the quick response.

    Graham

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ