Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Changing the look of "Your Price:"
- This topic has 10 replies, 2 voices, and was last updated 12 years, 6 months ago by livefitrev.
-
AuthorPosts
-
May 24, 2012 at 9:59 pm #6414livefitrevMember
Hello…
I am setting up various levels of donations and I have a level where the donor can specify their amount. By looking at my test page, you can get an idea of what I am trying to do…
http://livefitrevolution.org/?page_id=196555
All of the buttons are lined up vertically on the right, with a paragraph description to the left. For the “Your Amount” button, I would like to do 3 things…
1) Remove the words “Your Price:” completely. I saw the page on changing the wording of the text, but I want to eliminate the text completely because I have the button there instead.
2) Move the field where the user enters their amount BELOW the “Your Amount” button.
3) Center the field where the user enters their amount below the “Your Amount” button.
Thanks in advance for your help…
May 25, 2012 at 11:02 pm #45429adminKeymasterPoint number 1 should be doable with a small tweak but 2 and 3 will be hard to do. If you tell me exactly which shortcode you are using then I will able to tell you how you can remove the “your price” label completely.
FYI- couldn’t you change “Your Price” to “Your Amount” and then change the button to say something like “Donate”?
May 25, 2012 at 11:14 pm #45430livefitrevMemberThanks. The shortcode I am using is…
[wp_eStore_add_to_cart id=3]
Yes, I could change the text, but it would not look as clean. I would prefer to remove it completely.
When you say that my #2 and #3 request is hard to do, what would have to be done?
Thanks again for your help…
May 26, 2012 at 6:21 am #45431adminKeymasterLook for the following line of code in the “eStore_misc_functions.php” file:
$replacement .= WP_ESTORE_YOUR_PRICE.': '.$currSymbol.'<input type="text" name="custom_price" size="3" value="" /> ';
Once you find it change it whatever you like.
You will most likely be able to do #3 when you do the above modification. Number 2 has some under the hood technical difficulty. Please read the 3 point from the forum rules and it will explain more:
https://support.tipsandtricks-hq.com/forums/topic/forum-rules
May 26, 2012 at 8:34 pm #45432livefitrevMemberThank you. I was able to remove the “Your Price” line, by changing the code to the following…
$replacement .= $currSymbol.'<input type=”text” name=”custom_price” size=”3″ value=”” />
I appreciate the help. I completely understand your point about my #2 and #3 requests being customizations and outside of the limits of your support. Thank you for pointing that out in the rules.
Where is the best place to go for customization? Are their people you recommend or a place I can post in the forum to get customization help? I am obviously not looking for a major overall, but just a small tweak. Can you point in the right direction to someone who can help me? Thanks again for the help and support…
May 27, 2012 at 12:33 am #45433adminKeymasterYou can use our contact form to get in touch with us for customization needs.
May 29, 2012 at 6:31 pm #45434livefitrevMemberThanks. I am a non-profit start-up with a limited budget, so I am doing what I can to get help from forums and other sites to piece this together myself. Is this the code for the user-uploaded button in “eStore_misc_functions.php”?
function get_button_code_for_product($id)
{
global $wpdb;
$products_table_name = WP_ESTORE_PRODUCTS_TABLE_NAME;
$id = strip_tags($id);
$ret_product = $wpdb->get_row(“SELECT * FROM $products_table_name WHERE id = ‘$id'”, OBJECT);
if($ret_product){
$output = get_button_code_for_element($ret_product);
}
else{
$output = eStore_wrong_product_id_error_msg($id);
}
return $output;
}
Thanks for your patience and help…
Jason.
May 30, 2012 at 3:03 am #45435adminKeymasterNo, that’s not it. Is your question for tweak #2 or #3?
May 31, 2012 at 5:21 am #45436livefitrevMemberTweak #2. Moving the price entered below the button. I posted on a PHP help forum here…
http://www.phphelp.com/forum/index.php?topic=16783.0
…and was trying to find the code that referenced the button so that I could “changing the order of the input and img lines” as a poster on that thread suggested.
Thanks.
May 31, 2012 at 6:39 am #45437adminKeymasterIf Tweak#2 was easy I would have told you what to do already. This tweak is not just a matter of changing a few lines of code so it is hard to give you a *copy* this and *paste* this type of solution. I have to treat all our customers the same way.
May 31, 2012 at 5:00 pm #45438livefitrevMemberI understand. Thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.