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 :

http://looknic.ir/mobile-application/

Comments

alirahimian created an issue. See original summary.

tyler.frankenstein’s picture

Assigned: alirahimian » Unassigned
Status: Active » Postponed (maintainer needs more info)

The 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.

alirahimian’s picture

Assigned: Unassigned » alirahimian
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active
alirahimian’s picture

thank 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/

tyler.frankenstein’s picture

Status: Active » Postponed (maintainer needs more info)

Please do this for further assistance (mentioned above):

Utilize your browser's Console and Network developer tools tab to report relevant debug information for further assistance.

alirahimian’s picture

Status: Postponed (maintainer needs more info) » Active

I found the error

WARNING: _commerce_line_item_add_to_order - no product_id

alirahimian’s picture

I found another error

"DELETE: .... ?q=drupalgap/line-item/35.json - 403 - Forbidden"

alirahimian’s picture

i 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 !

tyler.frankenstein’s picture

Status: Active » Postponed (maintainer needs more info)

ReferenceError: Drupal is not defined

This 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/

WARNING: _commerce_line_item_add_to_order - no product_id

Have you patched the commerce_services module in Drupal?

"DELETE: .... ?q=drupalgap/line-item/35.json - 403 - Forbidden"

Anonymous users can't interact with carts or line items. Make sure your authenticated and this should work.

alirahimian’s picture

how 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

tyler.frankenstein’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

how I can Anonymous users can interact with carts or line items.?

They 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.

alirahimian’s picture

Hi 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.

tyler.frankenstein’s picture

Who's the owner of the cart? What is the cart order id, what is the order owner's user id?

alirahimian’s picture

hi 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

tyler.frankenstein’s picture

?q=drupalgap/line-item/35.json - 403 - Forbidden

It'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.

alirahimian’s picture

thank 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

alirahimian’s picture

?q=drupalgap/customer-profile.json - 403 is happend how can I fix it ??

tyler.frankenstein’s picture

403 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

alirahimian’s picture

thanks solved that my dear

alirahimian’s picture

Title: shopping cart drupalgap not edit and not remove items » How can I add scroll image to drupalgap

How can I add scroll image to drupalgap like marquee Html I add that but not working marquee tag what I must to do ??

tyler.frankenstein’s picture

Title: How can I add scroll image to drupalgap » shopping cart drupalgap not edit and not remove items

This issue has been closed, please don't change the title/subject of it. If you're having problems, please open a new issue.