| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
remove the "Our price:" Field | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4 www.WholesaleDigital.com.au - X-CART Gold 4.6.0 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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:
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:
and around line 105 Code:
HTH
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4 www.WholesaleDigital.com.au - X-CART Gold 4.6.0 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
Quote:
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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:
Code:
In products_t.tpl File Code:
__________________
www.pureimage.com.au - X-CART Gold 4.7.4 www.WholesaleDigital.com.au - X-CART Gold 4.6.0 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() If you PM me with details to your cart, then I can look into this in more detail for you...
Thanks
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() 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. ---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#8
|
|||||||
|
|||||||
![]() Quote:
Thank you I have done the following code Products_t.tpl Code:
Products_Details.tpl Code:
and Code:
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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4 www.WholesaleDigital.com.au - X-CART Gold 4.6.0 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() 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. ---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#10
|
|||||||
|
|||||||
![]() 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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4 www.WholesaleDigital.com.au - X-CART Gold 4.6.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|