Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

remove the "Our price:" Field

   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
Thread Tools Search this Thread
Old 01-19-2011, 05:17 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline

Join Date: Apr 2007
Posts: 14,160

Default 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.
Steve Stoyanov
Web Development
Reply With Quote
Old 01-19-2011, 11:00 PM
  gb2world's Avatar 
gb2world gb2world is offline

Join Date: May 2006
Location: Austin, TX
Posts: 1,970

Default 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.

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)
Reply With Quote
Old 08-30-2011, 06:05 PM
WCHA WCHA is offline

Join Date: Aug 2011
Posts: 1

Default 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!
Reply With Quote
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -8. The time now is 06:06 AM.


X-Cart forums © 2001-2020