Out of stock contact us

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Out of stock contact us

Post by kastnerd » Wed Jul 22, 2009 6:33 am

Id like a "contact us" field. that will display on out of stock items. User enters there email and clicks send. It will send an email too an address of my choice with there email and the products SKU and name.

Similar requests at this post viewtopic.php?f=45&t=7268

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Out of stock contact us

Post by mazhar » Wed Jul 22, 2009 10:18 am

A number of contact us samples are available in this thread
viewtopic.php?f=47&t=7954
All you need is to download and place a suitable one in your product page and wrap it within a NVelocity if that depends upon InStock value like

Code: Select all

#if($Product.InStock = 0)
[[ConLib:Custom\ContactUs]]
#end

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Out of stock contact us

Post by kastnerd » Tue Mar 16, 2010 9:55 am

mazhar wrote:A number of contact us samples are available in this thread
viewtopic.php?f=47&t=7954
All you need is to download and place a suitable one in your product page and wrap it within a NVelocity if that depends upon InStock value like

Code: Select all

#if($Product.InStock = 0)
[[ConLib:Custom\ContactUs]]
#end
This NVelocity is not working on Showproduct 1 any idea why?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Out of stock contact us

Post by mazhar » Tue Mar 16, 2010 10:12 am

What information is being showed by product page where you used the script. For example any error details or something like that are available or not.

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Out of stock contact us

Post by kastnerd » Tue Mar 16, 2010 10:45 am

No error, It just wont show, I tested changing the if statement to #if($Product) then it shows all the time of course. Its like its not getting the instock quantity?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Out of stock contact us

Post by mazhar » Tue Mar 16, 2010 10:51 am

Well may be your product has some value greater then 0 for in-stock value. Make sure that product in question has in-stock value equal to zero.

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Out of stock contact us

Post by kastnerd » Tue Mar 16, 2010 11:29 am

Code: Select all

#if($Product.InStock == 0)
[[ConLib:Custom\ContactUs]]
#end
I fixed it, it needed ==

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Out of stock contact us

Post by mazhar » Tue Mar 16, 2010 11:33 am

That's great :)

Post Reply