Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 07-21-2009 13:54:10

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Remote add sample page please

Hi Nick/Dave

Any chance you could post a sample remote product page???

Most importantly I need to know the changes to these items:

Code:

<p class="hidden"><input type="hidden" name="taxcountry" id="taxcountry" value="H" /></p>

<p class="hidden"><input type="hidden" name="taxstateprov" id="taxstateprov" value="1" /></p>

<p class="hidden"><input type="hidden" name="taxclass" id="taxclass" value="H" /></p>----Is this needed???
  
<p><input type="hidden" name="imgsm" id="imgsm" value="www......" /></p>

Thanks
Rob


Rob

Offline

 

#2 07-21-2009 14:03:18

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Remote add sample page please

Here you are:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<style type="text/css" media="screen">

body {
     font-family: Verdana, Tahoma, Arial, sans-serif;
     font-size: 11px;
     color: #333333;
     font-weight: normal;
     text-align: left;
     background-color: #F5F5F5;
     margin: 20px;
     }

a {
     color: #30569D;
     text-decoration: none;
     font-weight: normal;
     }

a:hover {
     text-decoration: underline;
     }

#content {
     color: #333333;
     background-color: #FFFFFF;
     border: 1px solid #333333;
     width: 600px;
     padding: 10px;
     margin: auto;
     }

#pgtitle {
     color: #FF6600;
     padding: 0px;
     margin: 0px 0px 10px 0px;
     font-weight: bold;
     font-size: 18px;
     }

</style>

<title>Sample Remote Product Form</title>

</head>

<body>

<div id="content">

<div id="pgtitle">Sample Remote Product Form</div>

<p>This page provides an example of an HTML form that can be used to post product 
information into a user's shopping cart from a remote HTML page.  View the 
source of this page for comments and tips on building your form.</p>

<p>Be sure to update the Store | Settings | Remote E-Commerce Settings 
function before posting from a remote HTML form.  You'll need to make sure that 
the field 'Allow Remote Product Page POSTs' is enabled and that the name of your 
remote HTML file or the domain it resides on is entered in the 'Allowed Remote 
Product Page URLs' field. These requirements help to maintain security for 
the program.</p>

<p class="strong">Example Product</p>

<p>This is a description of the example product.</p>

<p>Price: USD 9.99</p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | Enter in the correct path to index.php below.                   | -->
<!-- |                                                                 | -->
<!-- | The remaining hidden fields in this section need to be left as  | -->
<!-- | they are.                                                       | -->
<!-- |                                                                 | -->
<!-- | For users converting from version 5.0/5.1 remote product        | -->
<!-- | forms, the following changes were made with this version:       | -->
<!-- |                                                                 | -->
<!-- | 1. The tax fields now accept 1 and 0 as values instead of       | -->
<!-- |    Y and N.                                                     | -->
<!-- | 2. UPSWEBAPI has been support dropped from realtime shipping.   | -->
<!-- |    Use UPSTOOLS instead if this product uses realtime shipping. | -->
<!-- | 3. Product option fields that contain prices have been          | -->
<!-- |    reformatted.  The 'optionprodlist' field has also been       | -->
<!-- |    changed.                                                     | -->
<!-- | 4. Custom shipping scripts are no longer prefixed with          | -->
<!-- |    the string 'ste_shipcus_'.                                   | -->
<!-- |                                                                 | -->
<!-- | This software version will use legacy values, however           | -->
<!-- | updating forms using the old API is recommeded.  If you choose  | -->
<!-- | not to update the form field values in forms using the old API, | -->
<!-- | make at a minimum these changes:                                | -->
<!-- |                                                                 | -->
<!-- | 1. Change the post-to URL and add the 'app' and 'ns' fields.    | -->
<!-- | 2. Add a hidden field named 'oldapi' with a value of 1.         | -->
<!-- | 3. For any multiple selection fields (like prodoptionlist),     | -->
<!-- |    append the name of the field with a [].  PHP requires this   | -->
<!-- |    for fields submitted with multiple values.                   | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<form action="../../../index.php" method="post" id="remoteadd">

<p class="hidden"><input type="hidden" name="app" id="app" value="ecom" /></p>

<p class="hidden"><input type="hidden" name="ns" id="ns" value="addcart" /></p>

<p class="hidden"><input type="hidden" name="cart_api" id="cart_api" value="Y" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | The product URL variable can be passed to direct the user back  | -->
<!-- | to to this HTML page from the shopping cart.                    | -->
<!-- |                                                                 | -->
<!-- | Supply the URL in full format as:                               | -->
<!-- |                                                                 | -->
<!-- | http://www.yourdomain.com/page.htm                              | -->
<!-- |                                                                 | -->
<!-- | If this value is not passed, the user will be not be presented  | -->
<!-- | with a link.                                                    | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="urlproduct" id="urlproduct" value="http://www.yourdomainname.com/productform.html" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | The redirect URL variables can be passed to direct the user     | -->
<!-- | to particular confirmation pages instead of to the shopping     | -->
<!-- | cart page.  The 'urlredirgood' field is the URL to a confirm    | -->
<!-- | page for sucessful cart adds.  The 'urlredirbad' field is the   | -->
<!-- | URL to a confirm page for failed cart adds.  Use full URLs with | -->
<!-- | the format 'http://www.yourdomain.com/page.htm' for these.  If  | -->
<!-- | these values are not passed, the user will be directed to the   | -->
<!-- | shopping cart page.                                             | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="urlredirgood" id="urlredirgood" value="http://www.yourdomainname.com/good.html" /></p>
<p class="hidden"><input type="hidden" name="urlredirbad" id="urlredirbad" value="http://www.yourdomainname.com/bad.html" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | The price variable is named 'price' here we show it as a hidden | -->
<!-- | form field, but you could pass it as part of a single selection | -->
<!-- | list or radio buttons, or even have your user enter it in a     | -->
<!-- | text box.                                                       | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="price" id="price" value="9.99" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | The recurprice variable is named 'recurprice' here we show it   | -->
<!-- | as a hidden form field, but you could pass it as part of a      | -->
<!-- | single selection list or radio buttons, or even have your user  | -->
<!-- | enter it in a text box. This is the portion of the price that   | -->
<!-- | recurs each month.                                              | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="recurprice" id="recurprice" value="0.00" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | The 'wholesaleprice' and 'affiliatecomm' fields below define    | -->
<!-- | The wholesale price and affiliate commission amount for this    | -->
<!-- | item.                                                           | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="wholesaleprice" id="wholesaleprice" value="8.99" /></p>

<p class="hidden"><input type="hidden" name="affiliatecomm" id="affiliatecomm" value="1.00" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | You can also pass a volume based price schema instead of the    | -->
<!-- | price variable.  To do so, instead of passing 'price', pass     | -->
<!-- | 'volprice' with the following attributes:                       | -->
<!-- |                                                                 | -->
<!-- | 1:9.99;2-4:7.99;5:5.99                                          | -->
<!-- |                                                                 | -->
<!-- | In this scenario, buying up to 1 item is 9.99, buying between   | -->
<!-- | 2 and 4 is 7.99 and buying 5 or more is 5.99.                   | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="volprice" id="volprice" value="1:9.99;2-4:7.99;5:5.99" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | The quantity variable is named 'quantity' here we show it as a  | -->
<!-- | text box form field, but you could pass it as part of a single  | -->
<!-- | selection list or radio buttons, or a hidden form field.        | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p>Quantity (Required): <input type="text" name="quantity" id="quantity" value="1" size="5" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | The product name and number fields are presented below. They    | -->
<!-- | displayed as hidden fields, but as with everything else, you    | -->
<!-- | can pass them as any form field type.                           | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="name" id="name" value="Example Product" /></p>

<p class="hidden"><input type="hidden" name="number" id="number" value="EXAMPLE0001" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | You can select how to indicate delivery.  The field to pass is  | -->
<!-- | named 'delivery_method'.  The possible values are:              | -->
<!-- |                                                                 | -->
<!-- | N - Not Shipped                                                 | -->
<!-- | D - Download                                                    | -->
<!-- | R - Realtime                                                    | -->
<!-- | P - Product Based                                               | -->
<!-- | C - Custom Shipping Script                                      | -->
<!-- |                                                                 | -->
<!-- | If the item is not shipped, there is no need to pass additional | -->
<!-- | shipping fields.  If it is shipped, pass one of the sets of     | -->
<!-- | fields below.                                                   | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="delivery_method" id="delivery_method" value="P" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | If the item is a download item (it has a delivery_method = D),  | -->
<!-- | pass the download file name as the field 'dlfile'.              | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="dlfile" id="dlfile" value="myfile.zip" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | If the item is shipped realtime (it has a delivery_method = R), | -->
<!-- | pass the fields below for the local and international methods   | -->
<!-- | as well as weight, dimensions and shipper info.  Weight and     | -->
<!-- | dimensions should be sent in units used by the software. The    | -->
<!-- | 'realtime_local' and 'realtime_int' fields specify the method   | -->
<!-- | being used to ship the item.  Valid values are:                 | -->
<!-- |                                                                 | -->
<!-- | UPSTOOLS  - UPS OnlineTools                                     | -->
<!-- | USPS      - USPS OnlineTools                                    | -->
<!-- | FEDEX     - FedEx DirectConnect                                 | -->
<!-- |                                                                 | -->
<!-- | All realtime methods require subscription via admin. If the     | -->
<!-- | product should be grouped with other items when shipped, pass   | -->
<!-- | the 'numbox' field as '0', otherwise pass the 'numbox' field    | -->
<!-- | as the number of boxes (1 min, 6 max)                           | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="realtime_local" id="realtime_local" value="UPSTOOLS" /></p>

<p class="hidden"><input type="hidden" name="realtime_int" id="realtime_int" value="UPSTOOLS" /></p>

<p class="hidden"><input type="hidden" name="weight" id="weight" value="1.000" /></p>

<p class="hidden"><input type="hidden" name="length" id="length" value="10.0" /></p>

<p class="hidden"><input type="hidden" name="width" id="width" value="5.0" /></p>

<p class="hidden"><input type="hidden" name="height" id="height" value="5.0" /></p>

<p class="hidden"><input type="hidden" name="numbox" id="numbox" value="0" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | If the item uses product based shipping (it has a               | -->
<!-- | delivery_method = P), pass the fields below for the product     | -->
<!-- | shipping method names and prices.  Up to 3 different levels are | -->
<!-- | permitted.                                                      | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="prodship_name1" id="prodship_name1" value="Standard Shipper" /></p>

<p class="hidden"><input type="hidden" name="prodship_price1" id="prodship_price1" value="8.00" /></p>

<p class="hidden"><input type="hidden" name="prodship_name2" id="prodship_name2" value="Priority Shipper" /></p>

<p class="hidden"><input type="hidden" name="prodship_price2" id="prodship_price2" value="12.00" /></p>

<p class="hidden"><input type="hidden" name="prodship_name3" id="prodship_name3" value="Overnight Shipper" /></p>

<p class="hidden"><input type="hidden" name="prodship_price3" id="prodship_price3" value="16.00" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | If the item uses a custom shipping script to calculate shipping | -->
<!-- | costs (it has a delivery_method = C), pass the field below to   | -->
<!-- | specify the custom script used.  The field below corresponds to | -->
<!-- | the 'Identifier' field for the custom script you desire.        | -->
<!-- | This field can be viewed in the management interface under      | -->
<!-- | Shipping | Custom Shipping Methods.  A list of                  | -->
<!-- | the scripts installed with the program are presented below:     | -->
<!-- |                                                                 | -->
<!-- | user - User Defined Calculation                                 | -->
<!-- | cst  - Calculation On Total Item Cost                           | -->
<!-- | wgt  - Calculation On Total Item Weight                         | -->
<!-- | quan - Calculation On Total Item Quantity                       | -->
<!-- | pct  - Percentage Of Total Item Cost                            | -->
<!-- |                                                                 | -->
<!-- | Be sure to enter the name of the script exactly.                | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="customship" id="customship" value="user" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | If you have the product drop shipped, you can pass along the    | -->
<!-- | drop shipper's information using the hidden fields below. If    | -->
<!-- | the delivery_method is Realtime and the zip, state/province and | -->
<!-- | country are not passed, the values entered in the management    | -->
<!-- | interface for the site owner will be used instead.              | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="shipperzip" id="shipperzip" value="17405" /></p>

<p class="hidden"><input type="hidden" name="shipperstateprov" id="shipperstateprov" value="Pennsylvania" /></p>

<p class="hidden"><input type="hidden" name="shippercountry" id="shippercountry" value="United States" /></p>

<p class="hidden"><input type="hidden" name="shipperemail" id="shipperemail" value="shipper@yourshipper.com" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | You should also pass tax information.  The following fields     | -->
<!-- | allow you to select whether an item is subject to country taxes | -->
<!-- | as well as state/province taxes and the tax class.              | -->
<!-- |                                                                 | -->
<!-- | The following values are permitted for the 'taxcountry' field:  | -->
<!-- | EXEMPT, REDUCEDLOW, REDUCEDMIDLOW, REDUCEDMIDHIGH, REDUCEDHIGH, | -->
<!-- | STANDARD                                                        | -->
<!-- |                                                                 | -->
<!-- | The following values are permitted for the 'taxstateprov' field:| -->
<!-- | EXEMPT, STANDARD                                                | -->
<!-- |                                                                 | -->
<!-- | The following values are permitted for the 'taxclass' field:    | --> 
<!-- | STANDARD, DISABILITY, DIGITAL                                   | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="taxcountry" id="taxcountry" value="STANDARD" /></p>

<p class="hidden"><input type="hidden" name="taxstateprov" id="taxstateprov" value="STANDARD" /></p>

<p class="hidden"><input type="hidden" name="taxclass" id="taxclass" value="STANDARD" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | You have the ability to pass product options if you like. For   | -->
<!-- | each option field you pass, you will need a hidden field named  | -->
<!-- | 'optionprodlist[]' which contains a string delimited by the     | -->
<!-- | pipe character (|).  The string must contain the following info,| -->
<!-- | in this order: form field name, display name, type and required.| -->
<!-- |                                                                 | -->
<!-- | An example is given below for each type available. The type can | -->
<!-- | be 'TEXT' or 'SELECT'.                                          | -->
<!-- |                                                                 | -->
<!-- | Be sure not to use form field names that appear elsewhere       | -->
<!-- | on this page.                                                   | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p class="hidden"><input type="hidden" name="optionprodlist[]" id="optionprodlist0" value="option_name|Name|TEXT|0" /></p>

<p class="hidden"><input type="hidden" name="optionprodlist[]" id="optionprodlist1" value="option_comments|Comments|TEXT|0" /></p>

<p class="hidden"><input type="hidden" name="optionprodlist[]" id="optionprodlist2" value="option_whereheard|Referrer|SELECT|1" /></p>

<p class="hidden"><input type="hidden" name="optionprodlist[]" id="optionprodlist3" value="option_giftwrap|Gift Wrapping|SELECT|1" /></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | Following are the TEXT fields listed above.                     | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p>Please enter your name below.</p>

<p><input type="text" name="option_name" id="option_name" value="" size="25" /></p>

<p>If you have any comments, enter them below.</p>

<p><textarea name="option_comments" id="option_comments" cols="40" rows="10"></textarea></p>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- | Following are the SELECT fields listed above.  For each of      | -->
<!-- | these, the option value  parameter must be formatted in a       | -->
<!-- | string delimited by the pipe character (|).                     | -->
<!-- |                                                                 | -->
<!-- | The string must contain the following info, in this order:      | -->
<!-- | display name, one-time price, recurring price, wholesale price, | -->
<!-- | affiliate commission amount, weight change, download file,      | -->
<!-- | state/province tax level, country tax level and tax class.      | -->
<!-- |                                                                 | -->
<!-- | For the tax fields, use the same values as the product tax      | -->
<!-- | fields.                                                         | -->
<!-- |                                                                 | -->
<!-- | The prices can be positive (+ or nothing in front) or negative  | -->
<!-- | (- in front).                                                   | -->
<!-- |                                                                 | -->
<!-- | If the selection item is not priced, leave these fields blank   | -->
<!-- | as we do with the 'option_whereheard' example below.            | -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<p>Where did you hear about our online store?  (Required)</p>

<p><select name="option_whereheard" id="option_whereheard">
     <option value=""></option>
     <option value="Yahoo!|||||||STANDARD|STANDARD|STANDARD">Yahoo!</option>
     <option value="Google|||||||STANDARD|STANDARD|STANDARD">Google</option>
     <option value="Dogpile|||||||STANDARD|STANDARD|STANDARD">Dogpile</option>
</select></p>

<p>Would you like us to gift wrap your item for you? (Required)</p>

<p><input type="radio" name="option_giftwrap" id="option_giftwrap0" value="Yes|+5.00|0.00|+4.00|+.25|+.025||STANDARD|STANDARD|STANDARD" checked="checked" /> Yes (Add USD 5.00)</p>

<p><input type="radio" name="option_giftwrap" id="option_giftwrap1" value="No|||||||STANDARD|STANDARD|STANDARD" /> No</p>

<p><input name="SUBMIT" id="SUBMIT" value="Add To Cart" type="submit" /></p>

</form>

</div>

</body>

</html>

Nick Hendler

Offline

 

#3 07-21-2009 14:03:39

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Remote add sample page please

Notice there are more fields associated with the product option selection items too.


Nick Hendler

Offline

 

#4 07-21-2009 15:10:44

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Remote add sample page please

Thanks Nick
That has sorted the tax out.

The imgsm(cart image) doesn't work.

I have included this in the remote add form:

Code:

<p><input type="hidden" name="imgsm" id="imgsm" value="path to image" /></p>

and edited ECOM_Cart addcart_remote function from

Code:

$product['imgsm']          = 'none.png';

To:

Code:

$product['imgsm']          = $this->globals('core_cgi.imgsm');

what else needs to be changed??

Thanks
Rob

Last edited by zanart (07-21-2009 15:11:49)


Rob

Offline

 

#5 07-22-2009 07:41:53

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Remote add sample page please

It's not designed to show small product images as thumbs in the cart from remote adds.  Are you asking how to add this functionality?  If so, you're along the right path.

Just use an image name in your CGI field like 'image_small.jpg' and make sure you save that image to /{public}/media/ecom/imgsm.  That should work.


Nick Hendler

Offline

 

#6 07-22-2009 08:12:20

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Remote add sample page please

The mod/hack I posted above was used in V6 and worked correctly, i.e. there was a thumbnail image for remote add products in the shopping cart.

However I can't recreate it in V7. I have confirmed the path to the image is correct.

I note that you said I need to check the image is saved to /{public}/media/ecom/prodsm  - do you mean prodsm as there isn't a folder named imgsm in the media folder???

Thanks
Rob


Rob

Offline

 

#7 07-22-2009 08:14:41

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Remote add sample page please

Yes he did, the directory is prodsm

Offline

 

#8 07-25-2009 12:02:19

osussat
Member
Registered: 04-16-2005
Posts: 128

Re: Remote add sample page please

Hi all
I am currently using IF rules on the UserGroup type in order to allow my staff access to further information on my product detail screens than regular website users.  This is so they can use the website as a replacement for our current internal selling tool (a Filemaker Pro database).  One essential requirement is that they are able to discount items before adding them to the cart.  It seems that the only way of having this control is by adding products remotely (as CCP7 checks the price of regularly added items several times along the way and autocorrects to the database's stored price prior to checking out).  I am therefore trying to add coding to my product detail display which essentially recreates a product as a remote add automatically rather than have to create a remote add page manually for each of my products.  I have had success with items that do not have any product options by using code such as

Code:

<input type="hidden" name="name" id="name" value="<?php print $prodname; ?>" size="5">

(which automatically passes on the product name to the remote add function)
and

Code:

<input type="text" name="price" id="price" value="STAFF CAN ENTER A SALES PRICE HERE" size="5">

(which allows the Staff member to enter the desired sales price before performing a remote add)

However, for products that have options attached to them, I now need a way of retrieving product option information and recreating it automatically for this remote-add function.   Having to do this manually for each item would involve a lot of data repetition.
Does anyone have any pointers for me?
Thanks and Best
Oli

Offline

 

#9 07-27-2009 10:51:09

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Remote add sample page please

Oli-  I want to recommend you get a quote on a Level 2 Support job for this.  We can accomplish exactly what you want under a custom job in very little time at very little cost to you.  If I were you, I'd get a quote before looking into the remote add any further.  I was not aware you had a large number of products with options when I recommended you look at the remote add.


Nick Hendler

Offline

 

#10 07-28-2009 07:33:28

osussat
Member
Registered: 04-16-2005
Posts: 128

Re: Remote add sample page please

Will do, Nick, thanks

Offline

 

#11 07-29-2009 09:26:57

osussat
Member
Registered: 04-16-2005
Posts: 128

Re: Remote add sample page please

Hi Nick
I have been assigned ticket number SA00000422 ...I have a meeting scheduled with my client tomorrow, do you think I could get a quote back sometime today?
Many thanks
Oli

Offline

 

Board footer