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

Elegant Theme's eStore + WP eStore

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Elegant Theme's eStore + WP eStore

Tagged: Elegant Themes, estore

  • This topic has 20 replies, 12 voices, and was last updated 12 years, 6 months ago by admin.
Viewing 6 posts - 16 through 21 (of 21 total)
← 1 2
  • Author
    Posts
  • February 19, 2011 at 3:52 pm #23250
    happyches
    Member

    As per previous reply, this is from https://www.elegantthemes.com/forum/viewtopic.php?f=61&t=23928

    WP eStore is the more advanced and premium version of Simple PayPal Shopping Cart, to use this ecommerce plugin, follow these simple instructions:

    we will be editing “includes/single-product.php” file of the eStore theme from elegant themes:

    1. Find this line of code and delete it or comment it out

    <a href="#" class="addto-cart"><span><?php _e('Add to cart','eStore'); ?></span></a>

    2. find this section of code

    <div class="description">
    <p><?php echo($et_description); ?></p>
    </div> <!-- .description -->

    and replace with

    <div class="description">
    <?php $prod_id = get_post_meta($post->ID, 'prod_id', true); ?>
    <p><?php echo get_button_code_for_product($prod_id); ?></p>
    <p><?php echo($et_description); ?></p>
    </div> <!-- .description -->

    3. Now all you have to do is use “prod_id” as the name of a new custom field with the product id number in the value

    /// Source: https://www.elegantthemes.com/forum/viewtopic.php?f=61&t=23928

    It’s probably best to go directly to the source and see other peoples suggestions and edits as well.

    Also note: I have not yet tried this.

    February 20, 2011 at 1:26 am #23251
    amin007
    Participant

    @happyches, Thank you for sharing that link. I had a read and to me it looks like it will work fine if you follow the exact steps outlined there. Basically, you save the product ID in the custom field of a post. Then for that post it retrieves the custom field value and displays an add to cart button for that product id.

    March 31, 2011 at 8:26 am #23252
    FrkBrahe
    Member

    I have problems running WP eStore and Elegant themes eStore. I have followed your instructions above.

    But I get this error message:

    “Looks like you have entered a product ID () in the shortcode that doesn’t exist. Please check your product ID and the shortcode again!”

    What could be wrong?

    I am not sure about this issue. What to do here?:

    3. Now all you have to do is use “prod_id” as the name of a new custom field with the product id number in the value

    March 31, 2011 at 11:22 pm #23253
    amin007
    Participant

    Well, the error basically tells you what is wrong. Looks like the the WP eStore plugin’s function is getting called with an empty product ID and thats because you haven’t done part 3.

    I am guessing you have never used WordPress’s custom field option for a post. I think you reading an article on this will help. Here is a good tutorial that shows you how to use the custom field of a post:

    http://www.tutorial9.net/tutorials/web-tutorials/add-thumbnails-to-wordpress-with-custom-fields/

    That tutorial gives an example of how to use a thumbnail image but in your case you don’t need to do any of that. You just enter “prod_id” as your key and the product ID (example: 1) in the value field.

    October 25, 2012 at 9:46 pm #23254
    pslove
    Member

    This is how I integrated the WP Estore shopping cart with the Elegant Themes Estore theme.

    I was using the simple paypal cart before, so I already had all my products entered.

    I entered a new product in the WP Estore “Add/Edit Products” area and save it. That gave me a product ID number. All I added was the product name and price. I didn’t fill out everything.

    I went to my actual product listing and clicked to edit it. I put my cursor on the page where I wanted the buy button to appear. (that cart icon is in the list of icons above your product description when you’re on the visual tab.) I clicked the cart icon and then a pop up appears asking for the product ID. I put that in and updated my product.

    I did make my own buy button for my website. You upload that to your server then enter the url to it in the WP Etore Settings. (Add to Cart Button Text or Image)

    Then, to get rid of the Theme’s add to cart button, I went did an edit on the single-product.php. I removed the line:

    <a href="#"><span><?php esc_html_e('Add to cart','eStore'); ?></span></a>

    Then I saved.

    Of course, take a copy of that php page before you make any changes and save it. So, if you screw it up you can return to how it was easily.

    If you want to see what my work-around looks like: [http://lovesomebling.com]

    Pam

    October 26, 2012 at 5:30 am #23255
    admin
    Keymaster

    Hi Pam, Thank you for sharing the details.

  • Author
    Posts
Viewing 6 posts - 16 through 21 (of 21 total)
← 1 2
  • 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