[Skip to main content](#vessel-content)

#   Getting Cart variables

##

- **[rmalik](/forum/user/3001-rmalik "View rmalik's Profile")**
- [![rmalik's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3001-rmalik "View rmalik's Profile") Topic Author
- [ Offline](/forum/user/3001-rmalik)

Less More

- Posts: 22
- Thank you received: 1
-
-

11 years 7 months ago [\#195960](#195960) by [rmalik](/forum/user/3001-rmalik "View rmalik's Profile")  *[Getting Cart variables](/forum/29-payment-methods/875902-getting-cart-variables#195960 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3 -- PHP version -- : 5.5  Hi  I need to integrate Hikashop with &quot;Pay With Amazon&quot;. For this I need to place an Amazon checkout button at the first step of the checkout process, ( like Paypal Express checkout) . The first step is the login page.  On this page, I need to match the variables of the products in the cart with the XML required for Amazon. The amazon XML is:  private function getCartXML($merchantID, $awsAccessKeyID) { return &quot;&quot; . &quot;&quot; . &quot; 123457&quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;  .$SKU. &quot; . &quot; &quot; . $merchantID . &quot;&quot; . &quot;  .$product&#95;title. &quot; . &quot;  .$product&#95;description.&quot; . &quot; &quot; . &quot; $product&#95;price.&quot; . &quot; INR&quot; . &quot; &quot; . &quot;  $quantity. &quot; . &quot; &quot; . &quot;  $weight. &quot; . &quot; grams&quot; . &quot; &quot; . &quot;  $product&#95;category. &quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;&quot;;  }  Can anyone please guide me on how o get the ordered product details on the checkout login page...  Thanks in advance")* was created by *[rmalik](/forum/user/3001-rmalik "View rmalik's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3
-- PHP version -- : 5.5

Hi

I need to integrate Hikashop with "Pay With Amazon". For this I need to place an Amazon checkout button at the first step of the checkout process, ( like Paypal Express checkout) . The first step is the login page.

On this page, I need to match the variables of the products in the cart with the XML required for Amazon. The amazon XML is:

private function getCartXML($merchantID, $awsAccessKeyID) {
return
"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;" .
"&lt;Order xmlns=\"[ payments.amazon.com/checkout/2008-06-15/\\](http://payments.amazon.com/checkout/2008-06-15/%5C)"&gt;" .
" &lt;ClientRequestId&gt;123457&lt;/ClientRequestId&gt;" .
" &lt;Cart&gt;" .
" &lt;Items&gt;" .
" &lt;Item&gt;" .
" &lt;SKU&gt; .$SKU. &lt;/SKU&gt;" .
" &lt;MerchantId&gt;" . $merchantID . "&lt;/MerchantId&gt;" .
" &lt;Title&gt; .$product_title. &lt;/Title&gt;" .
" &lt;Description&gt; .$product_description.&lt;/Description&gt;" .
" &lt;Price&gt;" .
" &lt;Amount&gt;$product_price.&lt;/Amount&gt;" .
" &lt;CurrencyCode&gt;INR&lt;/CurrencyCode&gt;" .
" &lt;/Price&gt;" .
" &lt;Quantity&gt; $quantity. &lt;/Quantity&gt;" .
" &lt;Weight&gt;" .
" &lt;Amount&gt; $weight. &lt;/Amount&gt;" .
" &lt;Unit&gt;grams&lt;/Unit&gt;" .
" &lt;/Weight&gt;" .
" &lt;Category&gt; $product_category. &lt;/Category&gt;" .
" &lt;/Item&gt;" .
" &lt;/Items&gt;" .
" &lt;/Cart&gt;" .
"&lt;/Order&gt;";

}

Can anyone please guide me on how o get the ordered product details on the checkout login page...

Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzU5MDItZ2V0dGluZy1jYXJ0LXZhcmlhYmxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#195969](#195969) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Getting Cart variables](/forum/29-payment-methods/875902-getting-cart-variables#195969 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3 -- PHP version -- : 5.5  Hi  I need to integrate Hikashop with &quot;Pay With Amazon&quot;. For this I need to place an Amazon checkout button at the first step of the checkout process, ( like Paypal Express checkout) . The first step is the login page.  On this page, I need to match the variables of the products in the cart with the XML required for Amazon. The amazon XML is:  private function getCartXML($merchantID, $awsAccessKeyID) { return &quot;&quot; . &quot;&quot; . &quot; 123457&quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;  .$SKU. &quot; . &quot; &quot; . $merchantID . &quot;&quot; . &quot;  .$product&#95;title. &quot; . &quot;  .$product&#95;description.&quot; . &quot; &quot; . &quot; $product&#95;price.&quot; . &quot; INR&quot; . &quot; &quot; . &quot;  $quantity. &quot; . &quot; &quot; . &quot;  $weight. &quot; . &quot; grams&quot; . &quot; &quot; . &quot;  $product&#95;category. &quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;&quot;;  }  Can anyone please guide me on how o get the ordered product details on the checkout login page...  Thanks in advance")*

Hi,

I don't think that adding such kind of code in a view will be enough.
This will require a plugin, paypal express is handled by a plugin.

By adding code in the view, you could maybe send informations to Amazon payment gateway, but you will never have any returns form amazon to your shop, so no validation of the order, etc..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzU5MDItZ2V0dGluZy1jYXJ0LXZhcmlhYmxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")**
- [![tbroderick's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36185-tbroderick "View tbroderick's Profile")
- [ Offline](/forum/user/36185-tbroderick)

Less More

- Posts: 112
- Thank you received: 3
-
-

11 years 5 months ago [\#202977](#202977) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Getting Cart variables](/forum/29-payment-methods/875902-getting-cart-variables#202977 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3 -- PHP version -- : 5.5  Hi  I need to integrate Hikashop with &quot;Pay With Amazon&quot;. For this I need to place an Amazon checkout button at the first step of the checkout process, ( like Paypal Express checkout) . The first step is the login page.  On this page, I need to match the variables of the products in the cart with the XML required for Amazon. The amazon XML is:  private function getCartXML($merchantID, $awsAccessKeyID) { return &quot;&quot; . &quot;&quot; . &quot; 123457&quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;  .$SKU. &quot; . &quot; &quot; . $merchantID . &quot;&quot; . &quot;  .$product&#95;title. &quot; . &quot;  .$product&#95;description.&quot; . &quot; &quot; . &quot; $product&#95;price.&quot; . &quot; INR&quot; . &quot; &quot; . &quot;  $quantity. &quot; . &quot; &quot; . &quot;  $weight. &quot; . &quot; grams&quot; . &quot; &quot; . &quot;  $product&#95;category. &quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;&quot;;  }  Can anyone please guide me on how o get the ordered product details on the checkout login page...  Thanks in advance")*

I am currently using Breezing Forms with a custom cart to populate an order form on the home for a product that has three offers. The customer picks one of the three offers and fills in their name...contact info...and clicks the submit button where they are taken to the checkout page. This is the current code that handles populating the variables. Can you fix this so I can convert from the custom cart to Hikashop?

$this-&gt;execPieceByName('ff_InitLib');

echo '
&lt;form name="Form1" action="[ www.safesecureprocessing.com/](https://www.safesecureprocessing.com/)" method="post"&gt;
&lt;input name="capture" size="1" type="hidden" value="1" /&gt;
&lt;input type="hidden" name="website" value="691"/&gt;
&lt;input type="hidden" name="BILLING_COUNTRY_REQ" value="223"/&gt;
&lt;input type="hidden" name="billing_fname_req" value="'.htmlentities( ff_getSubmit('billing_fname_req') ).'"/&gt;
&lt;input type="hidden" name="billing_lname_req" value="'.htmlentities( ff_getSubmit('billing_lname_req') ).'"/&gt;
&lt;input type="hidden" name="billing_address_req" value="'.htmlentities( ff_getSubmit('billing_address_req') ).'"/&gt;
&lt;input type="hidden" name="billing_city_req" value="'.htmlentities( ff_getSubmit('billing_city_req') ).'"/&gt;
&lt;input type="hidden" name="billing_state_req" value="'.htmlentities( ff_getSubmit('billing_state_req') ).'"/&gt;
&lt;input type="hidden" name="billing_zip_req" value="'.htmlentities( ff_getSubmit('billing_zip_req') ).'"/&gt;
&lt;input type="hidden" name="billing_email_req" value="'.htmlentities( ff_getSubmit('billing_email_req') ).'"/&gt;
&lt;input type="hidden" name="billing_phone_req" value="'.htmlentities( ff_getSubmit('billing_phone_req') ).'"/&gt;
&lt;input type="hidden" name="product_id" value="'.htmlentities( ff_getSubmit('product_id') ).'"/&gt;

&lt;/form&gt;
&lt;script&gt;
document.Form1.submit();
&lt;/script&gt;
';

exit;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzU5MDItZ2V0dGluZy1jYXJ0LXZhcmlhYmxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

11 years 5 months ago [\#202990](#202990) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting Cart variables](/forum/29-payment-methods/875902-getting-cart-variables#202990 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3 -- PHP version -- : 5.5  Hi  I need to integrate Hikashop with &quot;Pay With Amazon&quot;. For this I need to place an Amazon checkout button at the first step of the checkout process, ( like Paypal Express checkout) . The first step is the login page.  On this page, I need to match the variables of the products in the cart with the XML required for Amazon. The amazon XML is:  private function getCartXML($merchantID, $awsAccessKeyID) { return &quot;&quot; . &quot;&quot; . &quot; 123457&quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;  .$SKU. &quot; . &quot; &quot; . $merchantID . &quot;&quot; . &quot;  .$product&#95;title. &quot; . &quot;  .$product&#95;description.&quot; . &quot; &quot; . &quot; $product&#95;price.&quot; . &quot; INR&quot; . &quot; &quot; . &quot;  $quantity. &quot; . &quot; &quot; . &quot;  $weight. &quot; . &quot; grams&quot; . &quot; &quot; . &quot;  $product&#95;category. &quot; . &quot; &quot; . &quot; &quot; . &quot; &quot; . &quot;&quot;;  }  Can anyone please guide me on how o get the ordered product details on the checkout login page...  Thanks in advance")*

Hi,

Why not simply have a product page in HikaShop with a characteristic for the selection of the offer, and custom item fields for the billing address fields ?

Otherwise, there is no form action of HikaShop you can use in order to add a product to the cart and at the same time fill in a billing address, so you can't just modify that code to fit with HikaShop.

The following user(s) said Thank You: [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzU5MDItZ2V0dGluZy1jYXJ0LXZhcmlhYmxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
