PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, November 22, 2022

[FIXED] How do I add shipping values per item?

 November 22, 2022     html, joomla, paypal     No comments   

Issue

I am using Joomla for my website which has some items for sale. I have hard coded the paypal buttons and costs for this and it works well:

 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    <input alt="Add this item to your order" name="submit" src="/add-to-order.gif" type="image" />
    <input name="add" type="hidden" value="1" />
    <input name="cmd" type="hidden" value="_cart" />
    <input name="business" type="hidden" value="name@name.co.uk" />
    <input name="item_name" type="hidden" value="Item name" />
    <input name="amount" type="hidden" value="500.00" />
    <input name="no_shipping" type="hidden" value="2" />
    <input name="currency_code" type="hidden" value="GBP" />
    <input name="bn" type="hidden" value="PP-ShopCartBF" />
 </form>

However, I wanted to add shipping values per item. These will be different depending on region of delivery and item. Is this all handled in the back end paypal set up? Or do I need to pass in these values? Any advice would be great thanks as im unsure of how to proceed.


Solution

For that PayPal integration, which is very old (about 20 years), the variables available for shipping and everything else are all documented here. The cart upload command specifically is explained here.

A current PayPal Checkout is much different.



Answered By - Preston PHX
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing