Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

How to change position of Add to Cart Button

(3 posts) (2 voices)
  • Started 10 months ago by tdako
  • Latest reply from tdako
  • Possible Solutions (Related Topics):
    1. line up add to cart button and change short code
    2. How to change 'add to cart' button text
    3. How to Customize or Change the Buy Button Images for eStore
    4. How to change positions of variations, price, buy now buttons
    5. Possible to change appearance and/or position of Authorize.net checkout button?

Tags:

  • add to cart
  • button
  • move
  1. tdako

    Hi Amin and Co.,

    I have a small question about the positioning of the Add to Cart button.

    I am using the shortcode, [wp_eStore_add_to_cart id=1] to place the variations and Add to Cart button under a product. What happens is that the variations is on one line, then there is a <br> code and then comes the Add to Cart button.

    Is there a way to move the Add to Cart button so that it is on the same line as the variations options? I tried using the Plugin Editor to find which file has the code to change this, but couldn't find it.
    Maybe you can help......;).

    Thanks in advance
    tdako

    Posted 10 months ago #
  2. amin007
    Key Master

    Open the "eStore_misc_functions.php" file and look for the following line of code:

    $output = get_button_code_for_element($ret_product);

    Once you find it please change it with the following:

    $output = get_button_code_for_element($ret_product,false);

    The 2nd argument (false) tells it not to use break line when it creates the button.

    Posted 10 months ago #
  3. tdako

    Hi Amin,

    Thanks very much for the swift answer......just tried it out and of course it works fine.

    Cheers
    tdako

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin