X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   X-Cart reBOOT (reDUX) Template (https://forum.x-cart.com/showthread.php?t=77655)

PhilJ 01-05-2024 12:21 PM

Re: X-Cart reBOOT (reDUX) Template
 
@ Sinobest, disable the "Block known bad bots" setting in reBOOT Settings > Security.

One or more of the entries in /reboot/.bad_bots.php needs removing, but I don't know which at the moment.

After disabling it, I was able to get the rich result tester to work.

https://search.google.com/test/rich-results/result?id=QCmBTUAP_FocfQPJXewMNQ

PhilJ 01-11-2024 11:37 PM

Re: X-Cart reBOOT (reDUX) Template
 
Update: in /reboot/.bad_bots.php

Remove this line around line 714...
Code:

        "inspect",
Info at https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers

If you would prefer to block bad bots via robots.txt instead, this might be useful.

vulcan-works 01-15-2024 05:38 AM

Re: X-Cart reBOOT (reDUX) Template
 
Did you get paypal checkout working?

PhilJ 01-16-2024 10:28 AM

Re: X-Cart reBOOT (reDUX) Template
 
@ Vulcan and others, I think I've just got it working (test store), so I'll put the patch files together and put them on the support site shortly.

The issue I was having was due to "UNPROCESSABLE_ENTITY" | "ITEM_TOTAL_MISMATCH" : Should equal sum of unit_amount * quantity across all items for a given purchase_unit. - Info

Basically the checkout cart total amount didn't match up, but after tweaking the tax settings, it started working.

I don't know whether QT have accounted for that scenario in the new module or not. It only seems to work with the One Page Checkout also.


In Shipping & Taxes > Tax details > Your tax rate

- Included in product price (new PP works if unchecked)
- Display product price including tax (new PP works if unchecked)

This was in the error log... (you need to have 'Log requests' enabled in the module settings to see them - /admin/configuration.php?option=Paypal_Checkout).
Code:

      "response": {
        "headers": [
          "HTTP/1.1 422 Unprocessable Entity",
          "Content-Type: application/json",
          "Paypal-Debug-Id: 41b51051edf94",
          "Content-Length: 555"
        ],
        "result_data": {
          "name": "UNPROCESSABLE_ENTITY",
          "details": [
            {
              "field": "/purchase_units/@reference_id=='default'/amount/breakdown/item_total/value",
              "value": "14.87",
              "issue": "ITEM_TOTAL_MISMATCH",
              "description": "Should equal sum of (unit_amount * quantity) across all items for a given purchase_unit"
            }
          ],
          "message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
          "debug_id": "41b51051edf94",
          "links": [
            {
              "href": "https://developer.paypal.com/docs/api/orders/v2/#error-ITEM_TOTAL_MISMATCH",
              "rel": "information_link",
              "method": "GET"
            }
          ]
        }
      }


PhilJ 01-16-2024 12:50 PM

Re: X-Cart reBOOT (reDUX) Template
 
Patch files for PayPal v2 are now up here. Please read the warnings before installing. Feedback welcome.

peggyr 01-20-2024 02:25 PM

Re: X-Cart reBOOT (reDUX) Template
 
Thanks Phil,

I use Fast lane checkout, and going to start looking at your mods to the paypal update on one-page checkout -- on my test site with fast lane checkout

I hadn't been interested in migrating to the new paypal module, as I didn't want many of the things it offered, and was happy with standard paypal for the few paypal orders I get.

I'll let you know if I have any success, and what I did using your one-page checkout mods

Cheers
Peggy

PhilJ 01-20-2024 03:23 PM

Re: X-Cart reBOOT (reDUX) Template
 
Thanks Peggy ;) I'll try and get it working with FLC and report back if successful.

peggyr 01-26-2024 09:32 AM

Re: X-Cart reBOOT (reDUX) Template
 
1 Attachment(s)
Hi Phil,

In my initial testing of Paypal Checkout, using my Paypal Business account in Developer mode, the 'features' appear to be incorrect. At this point, I am using One-Cart-checkout Redux option with your updates using 4.7.12.8 level of code

The first checkbox for "Advanced Credit and Debit Card Payments"
PayPal payment buttons plus customized card fields" on the left, while it appears 'checked' it also appears disabled, as I can't change anything in it. See attached.

If this is a problem, is this a problem I need to get PAYPAL to fix on my business account in Sandbox mode where I have generated REST/API credentials for Client ID and Secret Key?

I never get anything back to my test shopping cart. The error code I get from PayPal, doesn't give me much info, other than the name, email and address fields are all populated with **** (maybe that's what they are supposed to be, versus actual data - or maybe that is the problem.)

PP status code is 201. My x-cart logs show no debugging data for this transaction. It appears, I have never received any acknowledgement back from the Paypal call.

If anyone has any ideas on where to look for debugging info, thanks in advance.

I guess the better question might be, how can you determine if your Paypal Sandbox API Credentials are set up correctly to test the X-cart paypal checkout option on. I'm now opening up a question on the paypal forum site.

Peggy

PhilJ 01-27-2024 01:01 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Peggy, I believe code 201 is a successful response. The logs in /var/log should give you an indication if there's any errors or not (in the PayPal module settings, 'Log requests' needs to be enabled).

https://developer.paypal.com/api/rest/responses/

sales@nutrishopindia.com 02-01-2024 07:02 AM

Re: X-Cart reBOOT (reDUX) Template
 
any can help in xcart issues

1) forget passwords not working for user
2) we need sms login can any make this application
3) how to edit meta for pages like manufacturer.php and others


All times are GMT -8. The time now is 10:49 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.