![]() |
remove the "Our price:" Field
I have used the Price Modifier to set the price of the items in my store
The Quantity is the main identifier and because some products start with different quantites i dont want to show them a price until they get to the details page Having no price in the list price helps this and changes the link to "Buy now" My issue is that this creates a comment "Set your own price! The price for this product is not set. You can decide how much you want to pay. " Firstly, How do i remove this and Secondly, in the detailed details of the product how do i remove the "the "Our price" and Text field. This is confusing and i cant work out why or how this could even be benificial to the store. Here is a link to the store to see what i mean List of products showing the first issue http://www.store.xcesiv.com/home.php?cat=18 Link showing "Our price and text field" http://www.store.xcesiv.com/product.php?productid=15&cat=18&page=1Thank you in advance for your help |
Re: remove the "Our price:" Field
The messages "Set your own price!" can be removed from the templates. I think you're using 4.4.x with the 2 column layout,
So open up product_t.tpl (I think located in /skin/common_files/customer/main/) and look for the following code: Code:
<span class="price">{$lng.lbl_enter_your_price}</span><br /> commenting out the above code will prevent the text from appearing. Quote:
Open up product_details.tpl (again, located in /skin/common_files/customer/main/) and comment the following snippets of code: Around line 95 Code:
<td class="property-name product-price" valign="top">{$lng.lbl_our_price}:</td> and around line 105 Code:
<input type="text" size="7" name="price" /> HTH |
Re: remove the "Our price:" Field
sorry to sound stupid. but how do you comment out the code.
I couldnt find the product_t.tpl file but ill look again 2moro once i know what im doing |
Re: remove the "Our price:" Field
Quote:
Quote:
|
Re: remove the "Our price:" Field
Quote:
Thank you for your help so far. I think i did it right, but i can still see the problem Is this right In product_details.tpl file Code:
{* <td class="property-name product-price" valign="top">{$lng.lbl_our_price}:</td> *} Code:
{* <input type="text" size="7" name="price" /> *} In products_t.tpl File Code:
{* <span class="price">{$lng.lbl_enter_your_price}</span><br /> *} |
Re: remove the "Our price:" Field
If you PM me with details to your cart, then I can look into this in more detail for you...
Thanks |
Re: remove the "Our price:" Field
The template is made up of html and smarty. smarty code is inside {}, everything else is html.
You are using smarty comments for html code. To comment out html, use <!-- --> Also - you might have issues commenting out the input field. If it does not work, instead change it to a hidden field and pass 0 as a value. --- |
Re: remove the "Our price:" Field
Quote:
Thank you I have done the following code Products_t.tpl Code:
<!-- <span class="price">{$lng.lbl_enter_your_price}</span><br /> --> Products_Details.tpl Code:
<!-- {* <td class="property-name product-price" valign="top">{$lng.lbl_our_price}:</td> *} --> and Code:
<!-- {* <input type="text" size="7" name="price" /> *} --> Is this correct. Sorry i havnt dont coding for about 15 years and very rusty. also never worked with smarty code before. I have done the above and checked the product and its still showing up the text field. http://www.store.xcesiv.com//product.php?productid=15&cat=18&page=&is_featured_ product= I want it to show the price once the drop button is chosen, but cant seem to work it out. thanks again for your help |
Re: remove the "Our price:" Field
First - make sure you are updating the right files. You can use Webmaster mode to trace the correct template. It is not clear what version you have. The version in your signature does not exist.
Try removing the smarty comments you added. With just the html comments, you can view the source after you load the page and you should see them. If you don't, you may be editing the wrong files, or maybe forgot to run cleanup.php after your changes. If your add to cart submission has issues after you comment out the input, instead of commenting it out, try replacing it with: <input type="hidden" name="price" value="0" /> Be aware - you are making these changes for all your products. If none of this works - you might consider taking up Chamberinternet on their kind offer to give you personal assistance. If you want to still show the price - then you might be taking the wrong approach. There is code in your template that is displaying the text box for price entry when set to zero - you will want to change that. Look in your template for what is happening when you have zero price near where you have the "input type = text" code. You will probably find an if/else statement based on the "$product.taxed_price ne 0 ". You can change that to keep the same functionality, even if the price is zero and go from there. --- |
Re: remove the "Our price:" Field
Im sorry. Im running 4.4.1
I have updated my signature to match. as you mentioned i beleive im taking the wrong approach. I still want the price to be displayed, and change if they change a drop box option of 1 of the price modifiers. I just dont want the text box option there. I think i will have to take up someones help for this one as its beyond my capabilities |
Re: remove the "Our price:" Field
Dont use html comments (<!-- -->) to comment out smarty code. Use {* *}. What you need to do is set correct price for the product but hide quantity box and set hidden filed in the template with quantity - otherwise noone will be able to order.
|
Re: remove the "Our price:" Field
If I understand his requirement correctly - I don't think he wants to hide the quantity box - he is trying to set a zero price, and use price modifiers in the options to set the sale price. The customer may still need to choose quantity. He wants to display the price after the customer selects an option - which the existing javascript should handle. The issue may be that it will display zero or the first price modifier when the page firsts loads, so customization is probably needed to handle that.
It is also okay to use html comments to comment out what he is trying to hide. The enclosed smarty is just display - not executable, so it won't be a problem. The smarty comments were confusing him. Also suspect he will need some if/than statements to make it for only a certain category or group of products. It is going to take a little bit of customization to get it to work right and he might need more help than can quickly be offered in this thread - unless someone has time to work out all the issues for him. --- |
Re: remove the "Our price:" Field
I found myself with a similar question and found this thread -- thank you for the hint. Knowing from your answer that the "Set your own price" text was coming from the language variables "lbl_enter_your_price" and "lbl_enter_your_price_note" I was able to simply modify those phrases in the admin section that allows language edits. Instead of "Set your own price!
The price for this product is not set. You can decide how much you want to pay. " My site now more nicely states: "Variable pricing The price is determined by the option selected" Pointer appreciated! |
All times are GMT -8. The time now is 01:47 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.