简体   繁体   English

如何添加每件商品的运费?

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

I am using Joomla for my website which has some items for sale.我正在为我的网站使用 Joomla,该网站有一些待售物品。 I have hard coded the paypal buttons and costs for this and it works well:我已经硬编码了 paypal 按钮和成本,它运行良好:

 <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?这一切都在后端 paypal 设置中处理吗? Or do I need to pass in these values?还是我需要传入这些值? Any advice would be great thanks as im unsure of how to proceed.任何建议都会非常感谢,因为我不确定如何进行。

For that PayPal integration, which is very old (about 20 years), the variables available for shipping and everything else are all documented here .对于非常古老(大约 20 年)的 PayPal 集成,可用于运输的变量和其他所有内容都记录在此处 The cart upload command specifically is explained here .购物车上传命令具体解释here

A current PayPal Checkout is much different.当前的PayPal Checkout有很大不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM