帮助创建代码以将不同的产品链接分配给立即购买按钮,具体取决于客户放入购物篮中的内容。 [英] Help creating code to assign different product links to a buy now button, depending on what the customer puts in the basket.

查看:82
本文介绍了帮助创建代码以将不同的产品链接分配给立即购买按钮,具体取决于客户放入购物篮中的内容。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我参与数字营销,包括通过我的网站在eBay上宣传商品。

每个产品都有指定的链接,将客户带到PayPal购买页面。当客户在购物篮中添加商品时,我可以使用此链接将其分配给立即购买按钮。



但是,因为我有大约16种产品网站我需要一个代码,可以识别已经添加到篮子中的女巫产品,然后生成一个链接(已经为每个组合建立),与篮子中的内容相匹配。我当然能够在eBay上创建篮子,所有可能的产品组合都更加坚固,包括数量组合等。但是,我想知道我将如何将这个变量系统实现到代码中。



我知道一点JavaScript,并了解你可以分配IF因子和变量。有谁知道如何开始编写此代码并解决我的问题。模板会很棒。



谢谢,希望有人可以提供帮助:)



什么我试过了:



我尝试使用if和变量元素来玩JavaScript。

Hello guys,

I’m involved in digital marketing which involves promoting goods on eBay through my website.
Each product has an assigned link that takes the customer to the PayPal buying page. I can use this link to assign it to the "buy now" button when customers add an item in the basket.

However, as I have around 16 products on my website I need a code that can identify witch products have been added to the basket and then generate a link (that has already been established for each combination) that matches what’s in the basket. I have of course been able to create baskets on eBay with all the possible combinations of products tougher including quantity combinations etc. However, I was wondering how exactly would I implement this variable system into code.

I know a little bit of JavaScript and understand you can assign "IF" factors and variables. Would anyone know how to start writing this code and solve my problem. A template would be amazing.

Thanks, Hope someone can help :)

What I have tried:

I have tryed to play around with JavaScript using "if" and variable elements.

推荐答案

作为eBay,您需要阅读他们的开发人员 [ ^ ]& 卖家 [ ^ ]条款&条件和条件政策......我确信结账流程需要通过它们来完成。提出此类问题的最佳地点是 eBay开发者论坛 [ ^ ]。
Being eBay, you need to read their Developer[^] & Seller[^] Terms & Conditions & Policies... I am sure that the checkout process needs to be done through them. The best place to ask this type of question is the eBay Developer Forums[^].


这篇关于帮助创建代码以将不同的产品链接分配给立即购买按钮,具体取决于客户放入购物篮中的内容。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆