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

remove the "Our price:" Field

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-17-2011, 06:59 PM
 
xcesiv xcesiv is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 84
 

Default 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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4
www.WholesaleDigital.com.au - X-CART Gold 4.6.0
Reply With Quote
  #2  
Old 01-18-2011, 12:34 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default 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 /> {$lng.lbl_enter_your_price_note}

commenting out the above code will prevent the text from appearing.

Quote:
Secondly, in the detailed details of the product how do i remove the "the "Our price" and Text field.

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
__________________
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
Reply With Quote
  #3  
Old 01-18-2011, 01:42 AM
 
xcesiv xcesiv is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 84
 

Default 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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4
www.WholesaleDigital.com.au - X-CART Gold 4.6.0
Reply With Quote
  #4  
Old 01-18-2011, 02:12 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: remove the "Our price:" Field

Quote:
Originally Posted by xcesiv
sorry to sound stupid. but how do you comment out the code.
http://www.smarty.net/docsv2/en/language.basic.syntax.tpl#language.syntax.comments

Quote:
I couldnt find the product_t.tpl file but ill look again 2moro once i know what im doing
Sorry, typo it's called products_t.tpl
__________________
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
Reply With Quote
  #5  
Old 01-18-2011, 03:23 PM
 
xcesiv xcesiv is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 84
 

Default Re: remove the "Our price:" Field

Quote:
Originally Posted by chamberinternet

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 /> *} {* $lng.lbl_enter_your_price_note *}
__________________
www.pureimage.com.au - X-CART Gold 4.7.4
www.WholesaleDigital.com.au - X-CART Gold 4.6.0
Reply With Quote
  #6  
Old 01-19-2011, 12:18 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default 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
__________________
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
Reply With Quote
  #7  
Old 01-19-2011, 09:39 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

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

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

---
__________________
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
  #8  
Old 01-19-2011, 02:43 PM
 
xcesiv xcesiv is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 84
 

Default Re: remove the "Our price:" Field

Quote:
Originally Posted by gb2world
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.

---

Thank you

I have done the following code
Products_t.tpl
Code:
<!-- <span class="price">{$lng.lbl_enter_your_price}</span><br /> --> <!-- {$lng.lbl_enter_your_price_note} -->


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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4
www.WholesaleDigital.com.au - X-CART Gold 4.6.0
Reply With Quote
  #9  
Old 01-19-2011, 04:26 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

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

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


---
__________________
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
  #10  
Old 01-19-2011, 05:10 PM
 
xcesiv xcesiv is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 84
 

Default 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
__________________
www.pureimage.com.au - X-CART Gold 4.7.4
www.WholesaleDigital.com.au - X-CART Gold 4.6.0
Reply With Quote
Reply
   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 10:55 PM.

   

 
X-Cart forums © 2001-2020