Active
Project:
Commerce Buy One Click
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2015 at 20:22 UTC
Updated:
7 Dec 2015 at 11:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dragon658 commentedHello, Alex!
I did not test commerce_buy_one_click module in view of product displays, but I suspect that it shall work.
Look at "Using buy one click button in views" section of readme.md file.
Look at [product_id] at line 2 in this code. I suppose that you have to replace [product_id] with your actual product_id from your replace patterns.
Did you do it? Does it help?
Comment #3
Alex_eav commentedHi Denis,
Yes, I did everything like in your instruction, but maybe, I did something wrong.
See attached file.
I should note that standard button "Buy one click" from your module, work in product display, and don't work in field "Add to Cart" in view. That's why I tried to add in view "Buy one click" according to your instruction, but result was the same like with standard button - I can add data in form but after I've press the button "Create order" nothing happen.
Comment #4
dragon658 commentedAlex, look at "commerce_buy_one_click.js" file.
This line of code select each html element with "commerce-buy-one-click-button" class on the page. (such elements must be in your view)
Such HTML elements are used as buy one click buttons.
This line of code init fancybox for such elements:
Do you have any ideas why could this JS not work on your site?
I assume that your problem can be triggered by one of the following things:
1. Javascript error on page where your view is placed. Does your page with the view have fatal javascript errors?
2. Do you add your view to your page dinamically? My current code from "commerce_buy_one_click.js" file does not work with dynamically added html elements. (and it it not right - it shall be fixed in the feature)
Could you give me a link to the page with the view?
Comment #5
dragon658 commentedAlex, please open "commerce_buy_one_click.js" file and replace line 3
jQuery(".commerce-buy-one-click-button").each(function(index) {with this
jQuery("body").delegate(".commerce-buy-one-click-button", "click", function(index) {Does it help?
Comment #6
Alex_eav commentedHi Denis,
I have AJAX error on this page.
I made some tests and have additional information.
I'll give you access to my test site and you will see every thing you need.
All needed data and additional information I sent you by message from contacts in your profile.
If you don't receive it give me your contact and I will send it again.
Comment #7
dragon658 commentedAlex, please send me access data to info@dtec.pro
I cannot find message you sent me with contact form.
Comment #8
Alex_eav commentedDone