如何在URL中单击操作时包含特定按钮
我正在开设一家Shopify商店,需要创建URL链接,以直接转到“编写评论”表格,该表格打开了每个产品页面中的按钮。
此链接是为直接搜索文本“评论”而创建的。然后单击它
I am working on a shopify store and need to create url links to directly go to "write a review" form which opens up onclick on a button in each product page.
This link has been created to directly search for text "reviews" and go the that position.. instead , I am looking to include opening the form (Click on "Write a review" button) directly in the url instead of expecting customer to search and click on it
https://thebrownbling.com/products/ajwa-madina-saudi-dates#:~:text=reviews
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在&gt中创建一个函数;
管理>在线商店>主题>现场主题>动作>编辑代码。
搜索您的产品。liquid或类似(取决于您的主题,名称不同),并在代码末尾添加脚本。
在此脚本中,为ID创建删除CSS:#form_67288083999028
(如果您尝试将此脚本插入控制台中,则在运行代码后可以看到该脚本,请在运行代码后可见),
请尝试使用url作为变量,如果HREF =带有评论链接的URL,显示以下评论:尝试复制并粘贴在您的控制台中的下一个代码:
You need to create a function inside the >
admin > online store > themes > live theme > Actions > edit code.
Search your product.liquid or similar (depending your theme, the name is different) and add a script at the end of the code.
in this script, create a remove css for the id: #form_6728808399028
(if you try to insert this script in the console, the form to write a review is visible after running the code)
try using the url as a variable, if the href = your url with review link, show the review for: try copy and paste the next code in your console: