Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Displaying Product Code and Unit in shopaddtocart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

XeeShaN
Starting Member

Pakistan
21 Posts

Posted - June 25 2007 :  17:34:28  Show Profile  Visit XeeShaN's Homepage  Reply with Quote
Hi,

I want to display the product code, unit , and some other variables on shopaddtocart.asp page, when i order any product, on the main page its showing .. i want them to be displayed on the page after ordering the product as well. I have tried alot , but didnt get success, if some one can help me , then it will be great . I have attached the screen shots , so that you can get idea what exactly i want.

This is the main page, where i can see the product code , unit, datasheet url.

http://img185.imageshack.us/img185/4830/mainho5.jpg

This is the page when i select the product,

http://img185.imageshack.us/img185/5641/selectedti5.jpg

Best Regards,
XeeShaN

seeker1
VP-CART New User

Australia
114 Posts

Posted - June 25 2007 :  19:47:59  Show Profile  Visit seeker1's Homepage  Reply with Quote
There are two ways to do this.

1. If you want fields for customer to see and in emails to merchant and customer using

xcartfields=ccode,cname, cdescription
This puts those fields into the cart.

2. If you only want merchant to see them when they view the order, use
xdisplayorderfields=ccode
This will add the ccode to other order display on the Control panel

These and other VP-ASP handy hints are in the Guide to VP-ASP

Howard Kadetz
www.hkprog.com/guide

Customizations and add-ons
Go to Top of Page

XeeShaN
Starting Member

Pakistan
21 Posts

Posted - June 26 2007 :  17:06:12  Show Profile  Visit XeeShaN's Homepage  Reply with Quote
Hi Howard,
Thanks for the response. Well can you tell me in which file and where i have to write this line to display the product code. Coz right now i am having difficulty to find it.

Regards,
Xeeshan
Go to Top of Page

seeker1
VP-CART New User

Australia
114 Posts

Posted - June 26 2007 :  18:57:31  Show Profile  Visit seeker1's Homepage  Reply with Quote
The Shop Configuration is the heart of VP-ASP. It allows you to do numerous things without the need for programming. So there is no "file" to change.

1. Logon to VP-ASP Control Panel
2. Select Set-up Tab
3. In the search box enter the configuration option you want to change
say xcartfields

4. It will then display the current values and you now change them to

ccode,cname, cdescription

Howard Kadetz
Go to Top of Page

XeeShaN
Starting Member

Pakistan
21 Posts

Posted - June 27 2007 :  08:36:57  Show Profile  Visit XeeShaN's Homepage  Reply with Quote
thanks , it worked, now the product code and weight is coming. But there is a one problem , the value of product code and weight is coming but not the heading , Like it should display Product Code: xyz , currently its displaying only xyz , i have attached the screen shot, so you can get better idea ,

http://img178.imageshack.us/img178/5790/cartau7.jpg

You will see that manufacture is coming in bold, i want to display Product Code there as well . Please advise.

Best Regards,
XeeShaN
Go to Top of Page

XeeShaN
Starting Member

Pakistan
21 Posts

Posted - July 03 2007 :  08:17:51  Show Profile  Visit XeeShaN's Homepage  Reply with Quote
is there anyone who can answer to my last post.I'll be very thankful.

Regards,
Go to Top of Page

seeker1
VP-CART New User

Australia
114 Posts

Posted - July 03 2007 :  17:02:32  Show Profile  Visit seeker1's Homepage  Reply with Quote
There is no trivial solution to this and a good solution will require some ASP programming knowledge. In file shopproductsubs.asp there is a routine call GetNameInCart (Rsitem, dbc)

This is where the fields you want get added to the cart description.
It is possible to change one line to add the database field name in front of the values.

If you change this line to this
nameincart=nameincart & fieldvalue
To
nameincart=nameincart & "<b>" & cartfields(i) & "</b>: " & fieldvalue
This adds the database field name before the value.

You will now see.
cname: Apple Set
cdescription: Non slip apple peeler

A proper solution would probably change the field names to English. but there is no easy way to do this without more ASP logic.

Hope this helped.

Howard Kadetz
www.hkprog.com
[email protected]
VP-ASP customizations and add-ons

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00