Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hi dear I install drupalgap with commerce but not work correct for example when I click on add to cart
for several time go to shipping cart and in shipping cart I can't edit or remove item ( by admin level ).
I set permission user .
when I install drupalgap in localhost ( wamp server ) I can edit and remove order from shipping cart
but when I install that on my server it's happend. please guide me How can I fix that ??
you can check this problem here :
Comments
Comment #2
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThe project README contains the most up to date information on how to install, configure and use the DrupalGap Commerce module: https://github.com/signalpoint/commerce/blob/7.x-1.x/README.md
Other than that, you need to be more specific please with the problem. Utilize your browser's developer tools Console and Network tabs to report relevant debug information for further assistance.
Comment #3
alirahimian CreditAttribution: alirahimian commentedComment #4
alirahimian CreditAttribution: alirahimian commentedthank you my dear but I check how to install every thing is ok but I can't understand why when I click
in add to cart not work correct and shipping cart not edit and update on my server
please check it
http://looknic.ir/mobile-application/
Comment #5
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedPlease do this for further assistance (mentioned above):
Comment #6
alirahimian CreditAttribution: alirahimian commentedI found the error
WARNING: _commerce_line_item_add_to_order - no product_id
Comment #7
alirahimian CreditAttribution: alirahimian commentedI found another error
"DELETE: .... ?q=drupalgap/line-item/35.json - 403 - Forbidden"
Comment #8
alirahimian CreditAttribution: alirahimian commentedi think this problem is from this error :
ReferenceError: Drupal is not defined
drupalgap_init()
drupalgap.min.js:2
I don't know how can I fix that !
Comment #9
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThis means jDrupal is not being loaded properly. Please download the latest 7.x-1.x jdrupal.min.js and include it in your index.html file: http://jdrupal.easystreet3.com/
Have you patched the commerce_services module in Drupal?
Anonymous users can't interact with carts or line items. Make sure your authenticated and this should work.
Comment #10
alirahimian CreditAttribution: alirahimian commentedhow I can Anonymous users can interact with carts or line items.? i insert any permission for order an line item for Anonymous ?
Anonymous User
View any product of any type
Create orders of any type
Edit own orders of any type
Authenticated User
View own orders of any type
View own Order orders
View any product of any type
Create orders of any type
Edit own orders of any type
but see again DELETE: .... ?q=drupalgap/line-item/35.json - 403 - Forbidden
Comment #11
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThey can't, yet. I just now created the issue that would need to be resolved to make this happen: https://github.com/signalpoint/commerce/issues/15
It's resolution will likely not happen anytime soon without community support or financial contributions.
Comment #12
alirahimian CreditAttribution: alirahimian commentedHi my Dear
when i login by level admin i canot edit shipping cart
see again 403 forbiden line time.
Also when i install App in localhost every thing is right...
I check the permission, httacsses. not resolved.
what i must to do for fix this error. please
help me.
Comment #13
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedWho's the owner of the cart? What is the cart order id, what is the order owner's user id?
Comment #14
alirahimian CreditAttribution: alirahimian commentedhi my dear
1- I login in app with admin ( admin permission )
http://looknic.ir/1.jpg
2- when I want to buy a product , that is added to shipping cart ( easy )
http://looknic.ir/2.jpg
3.but when I want to edit shipping cart ( with admin permission ) happened this error ( I cannot edit )
http://looknic.ir/3.jpg
http://looknic.ir/4.jpg
http://looknic.ir/5.jpg
?q=drupalgap/line-item/35.json - 403 - Forbidden
please help me
Comment #15
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedIt's possible your web host provider doesn't allow the PUT method, confirm with them that they will allow the PUT http method.
If they do, then you'll need to step through commerce_services_line_item_update() with watchdog(), or xDebug to see what is happening each step of the way.
Comment #16
alirahimian CreditAttribution: alirahimian commentedthank you very much my dear
I add to .htaccess ( drupal ) in root and public_html/sites/default/files/
<
Limit GET POST PUT DELETE
Allow from all
/Limit
>
and that is solved
and
I install the patch
cd sites/all/modules/commerce_services
wget https://www.drupal.org/files/issues/customer_profile_crud-2643530-1.patch
git apply -v customer_profile_crud-2643530-1.patch
every thing is ok thank you
Comment #17
alirahimian CreditAttribution: alirahimian commented?q=drupalgap/customer-profile.json - 403 is happend how can I fix it ??
Comment #18
tyler.frankenstein CreditAttribution: tyler.frankenstein commented403 means access denied, so that means the access_callback is returning FALSE when someone tries to hit it. Since the access_callback falls back to Commerce permissions, it sounds like you need to enable appropriate permissions/roles to access this. Take a look at the patch to see its access_callback implementations: https://www.drupal.org/files/issues/customer_profile_crud-2643530-1.patch
Comment #19
alirahimian CreditAttribution: alirahimian commentedthanks solved that my dear
Comment #20
alirahimian CreditAttribution: alirahimian commentedHow can I add scroll image to drupalgap like marquee Html I add that but not working marquee tag what I must to do ??
Comment #21
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThis issue has been closed, please don't change the title/subject of it. If you're having problems, please open a new issue.