close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Powerstore 3 -Can I remove a validation

Thread began 12/13/2010 2:50 pm by jcav26033 | Last modified 12/14/2010 10:58 am by Jason Byrnes | 1863 views | 5 replies |

jcav26033

Powerstore 3 -Can I remove a validation

I have a client who does not want to enter the price for the items but instead wants Call for Price to appear. Another user asked this question about 2 years ago and was told that the price validation could be removed, but no more info was provided. Can you direct me to the file I need to edit to delete the price field numeric entry validation?

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

from the products insert page in the admin folder, delete the following 2 lines:
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "real", {validateOn:["blur"]});

$WAFV_Errors .= WAValidateNM(((isset($_POST["ProductPrice"]))?$_POST["ProductPrice"]:"") . "",0,1000000,2,",.",true,4);


Please Note:
This is not a modification we can offer support for, power store does not support free items, this may cause issues when going to the gateway if only the free item is in the cart, the gateway will not process a transaction for $0

Sign in to reply to this post

jcav26033

Thanks, but no transactions will occur

Hi Jason,
Thanks for your response. No worries as this store is "for display only" since it is a high-end jewelry client that wants to "haggle" prices rather than post what in the jewelry biz is always a "starting-point" price (at least at this end of the market).

As long as the store doesn't break by me editing those lines, great. I actually would love to get rid of the "add to cart" button too since this is more of a "gallery" than a store, but it needs to be sortable and searchable by category and I don't know of an actual gallery solution that allows this. The open-source Zen-Cart allows you to set up a store as a gallery-only store, but it is so obtuse to customize the code & appearance (even with their huge manual) that I prefer the look and ease of your solution.

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

removing that code from the producs insert wont break he store f you are not passing through the gateway.


to remove the add to cart button, edit the product detail page and remove this code:
<input type="image" src="Images/btn_addtocart.png" border="0" value="Add to Cart" name="WA_Store_Cart_1_ATC">

Sign in to reply to this post

jcav26033

Again, Thanks

That is just what I needed. Thanks for your support in the forums!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...