Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › how to modify the shortcode templates
- This topic has 8 replies, 2 voices, and was last updated 13 years, 8 months ago by dlusionz.
-
AuthorPosts
-
March 1, 2011 at 3:24 am #2836dlusionzMember
Hi, I´d like to modify the templates for displaying products or make my own, I imagine modifying one is easier to do than creating another one, what files should I edit to accomplish this?
thanks in advance
March 1, 2011 at 3:41 am #29680dlusionzMembermy reason for this is the following: im launching this in a market where online payments are just starting to pick up and the plugins method of showing the prices with variations is confusing to my clients (based on their feedback), so Im trying to work around by making the base price 0 and then the variations show the full product prices, and im looking to customize the display shortcode to hide that the product costs 0, as that could also be confusing,
March 2, 2011 at 12:51 am #29681amin007ParticipantLet me know which fancy product display you are using and I will be able to tell you which file to edit.
March 2, 2011 at 6:05 am #29682dlusionzMemberthanks, for the quick reply
im interesting in modifying
[wp_eStore_category_products:category_id:13:end]
and
[wp_eStore_category_products_fancy id=18 style=4 order=2]
March 2, 2011 at 11:13 pm #29683amin007ParticipantLook for the following function in the “eStore_misc_functions.php” file for the first one:
function show_products_from_category
The 2nd shortcode comes for the extra shortcodes plugin. Find the following function in the “shortcode_include.php” file of that plugin:
function show_wp_eStore_category_products_fancy
March 3, 2011 at 4:48 am #29684dlusionzMemberthanks! keep up the good work!
March 3, 2011 at 6:20 am #29685dlusionzMemberlooking around a bit im a little confused on which function I need to remove the price from showing up (I set the base price to 0 so customers dont get confused with the price variation method), my php knowledge is somewhat limited ( but im learning! )
March 3, 2011 at 11:00 pm #29686amin007ParticipantLook for the “ESTORE_PRICE” label then get rid of that entire line which shows the price. You might have to follow the trail and see which function gets called inside and go there (thats where the price might be).
I think the shortcodes that you are using will eventually result in going to the fancy1 element. So look for the price in the “show_product_fancy_style” function which is in the “eStore_misc_functions.php” file.
FYI – There is another shortcode in the extra eStore shortcodes plugin that allows you to display a product without price:
[wp_eStore_fancy1_no_price id=1]
March 4, 2011 at 5:00 am #29687dlusionzMemberthanks! worked like a charm!
-
AuthorPosts
- You must be logged in to reply to this topic.