X-Cart checkout is empty - checkout

I have problem with my x-cart website. When I click on "Buy Now" button on one product, and after that I click on "My Cart" which is the checkout section, it returns that my cart is empty although I already click to buy product.
Here is my website: http://www.farlin-cambodia.com/home.php?cat=591
How can I fix it?

The store you're referring to is of version 4.1.6, that's an old version where there were no adding to cart without redirect (with ajax). The behaviour in question is still there, thus the feature is added as a custom mode.
If JS is enabled in the browser, and if the store considers that it's enabled, the JS script is supposed to send some data to script minicart_content.php, and the php script is to process the received data further. However it doesn't happen, and there are no JS errors, which makes me believe that the problem is in the code of minicart_content.php, with this file is very likely being modified too.
If JS is disabled in the browser ( and if you click the corresponding button in the store in the pink side menu block - "If Javascript is disabled in your browser click here"), this custom scenario is not applied, so the store uses the default functionality which allows to add the products to cart with out problems.
Thus, the possible solution is:
roll back the custom changes you implemented, and use default functionality (adding products to cart with a redirect to cart page)
or
check the minicart_content.php script and find out, why it doesn't want to properly process the data sent by JS script
If you're not sure how to achieve this, consider contacting X-Cart support team for further investigation. Not sure if I can give a link to X-Cart support here, but I'm sure you'll easily find it, if only try to search=)

Related

Elementor Popup not redirecting or collecting submissions

I have an Elementor popup that I created via their standard options within the plugin (so no special/custom coding has been done). The after form submission options that I chose are to collect submissions and redirect. Neither of those items are happening. Yes, I've verified I have 'collect submissions' chosen and yes, I've verified I have the full, correct URL listed.
I've also Googled, and searched Elementor's knowledge base extensively for help with this. I'm not coming across anything that would indicate the reason for the popup to not function correctly.
I've deleted and created a new popup thinking the original was maybe corrupted somehow. That did not help.

How to show confirm box before submit form in moodle on course edit page?

I am using moodle 2.8
I wants to confirm user before edit course.
Basically I have a category name ex. 'Live' category
So when user move course into 'Live' category then want to show confirm box and if he click on yes then course will be update otherwise redirect to course edit page.
This will require changes to the Moodle core code (not usually a great idea, for ongoing maintenance) and would probably be a bit fiddly to implement - you would need to store all the submitted details somewhere in the confirmation form, then re-send them along with the confirmation.
It might be easier to make a small core code change to prevent the user from ever moving the course directly into the 'live' category (adjust the 'validation' function in the form submission), then have a separate admin page (within a local plugin, or maybe a block), that listed all the non-live courses and gave the option of moving them into the 'live' category (with the appropriate warnings / confirm action).

Generating a dynamic Buy Now button

I am currently speccing out a custom auction plugin for WordPress. One thing I would like to do for each item is to generate a dynamic Buy Now link that will redirect to a PayPal screen with the item name and final price.
From what I can see, the only way to generate one of these buttons is to go to the form that generates the buttons for you. Is there a js file that I can use to generate these buttons from a Wordpress admin area? If so, can someone please provide a link so that I can begin reading up on the documentation?
Thank you
There are several examples of how to create a "pay now" button on stackoverflow (with simple HTML form). I would rather not use the "insecure" forms.
For including it in Wordpress you need to create a PHP Script (Plugin) that creates you the button, either with a library or "by hand".
The second thing I would recommend is to give PayPal an URL they should call after a payment status change (IPN). Some libraries (as the one above) can help you with that.

Open Graph Action and Object Resubmission

As I submit an application for "read" action on Open Graph I received the following response.
Status: Changes needed
Unfortunately, your article.read built-in submission does not meet the read requirements specified at: https://developers.facebook.com/docs/opengraph/actions/builtin/#read. You must give users the ability to turn sharing off/on globally as well as remove an article that was shared within the app. In addition, read actions should only be generated when there is a strong indication that the user is actually reading the article. Please note that we cannot accept resubmission as this time due to technical limitations, so you will need to create a new submission. We plan to have this resolved within the next couple of weeks. We suggest making the required changes and checking back. We appreciate your patience. Note: If you are creating an aggregation based on the object, you need to add 6-7 unique sample objects, and then create a corresponding sample action acting on each of these unique objects. (You can not just create 6-7 sample actions pointing to the same sample object). Submission Checklist: https://developers.facebook.com/docs/opengraph/checklist
Please make changes below and resubmit for review.
Unfortunately, this "guide" is not helping with anything. Firstly, I have no idea where to do this:
You must give users the ability to turn sharing off/on globally as well as remove an article that was shared within the app.
Second of all, I don't even know how to "resubmit"!
Any help would be appreciated.
I was experiencing the same thing. You have to click on the name of your action that you submitted. Once you do that, Facebook provides detailed instructions why they didn't approve the action and what you need to do before you resubmit. Once you review the message, you can make the necessary changes and save the action again. Then you'll have the option to resubmit. In my case Facebook said that I need to provide more detailed instructions what the user needs to do to get an action published. They provided this example: "User must create an account, enable Timeline sharing in the settings, view a product within the app and then click the “want” button underneath the product image to trigger a story". I did that and resubmitted. Hopefully it works this time around. Good luck.
To resubmit, just delete the rejected action and create a new one. You can use the same action name as before. You then go through the submission process again as you did the first time.
Facebook have recently updated their guide to implementing their built-in action types. For the Read action type, see https://developers.facebook.com/docs/opengraph/actions/builtin/#read. You will see a sample application that meets the following criteria required for the use of this action type:
Turn sharing on/off globally on each page an article appears.
Remove articles they shared within your app on each page an article appears.
Only generate read actions when you're sure someone is interested in reading the article.
Built-In actions can't be resubmitted. It is a FB Bug:
https://developers.facebook.com/bugs/364663400220101?browse=search_4f44876aabaef7501649601
From this answer on FB tools and support I got this:
You can start a new submission at the bottom of the "Items in Review" page:
https://developers.facebook.com/apps/337449599791917/review-status/items-in-review/
That link didn't work for me.. so I just went to the app dashboard and clicked on status and review
clicking on the start a new submission button loaded a dialog that prompted me to select which items to "re-review".. so I only selected the problematic one:
after that it loads a form for you to resubmit, so here you gotta re-upload the iOS simulator build etc..
and that's it!

Magento cart redirects to onepage checkout, how do I make it stop?

Hi I'm new to Magento, so we installed the Magento Simple checkout which is working fine but when you add a product it takes you to the cart (checkout/cart) which is fine but then it suddenly jumps to (checkout/onepage).
Both pages look pretty similar except the cart page gives me the option to keep shopping and change cart quantities and update the cart while the checkout page doesn't have this. I can never change the cart options because it always redirects.
Is there anyway to stop it from redirecting? I don't even know where to start to look so I could paste some code.
Thank you in advance.
It sounds like Simple Checkout is designed to do exactly that. If you don't like it, uninstall it. If you think there is a bug, contact the authors of Simple Checkout directly.
This is a javascript problem. If you view the source of checkout/cart/ (difficult, I know, it tries to redirect quite quickly) you might find this in it.
var checkout = new Checkout(accordion,{
progress: 'http://metrotemplate.com/checkout/cart/progress/',
review: 'http://metrotemplate.com/checkout/cart/review/',
saveMethod: 'http://metrotemplate.com/checkout/cart/saveMethod/',
failure: 'http://metrotemplate.com/checkout/'}
);
Basically it tries to POST an update to checkout/cart/saveMethod/ which is equivalent to the first step of onepage checkout. Unfortunately that URL doesn't exist, it should be POSTing to checkout/onepage/saveMethod/ in the background, instead it gets a 404 error which triggers the page to reload as the "failure" URL.
The final step is checkout/ redirects automatically to checkout/onepage/.
I cannot tell why the extension has started outputting URLs that begin with checkout/cart/* rather than checkout/onepage/*. Perhaps there is an admin setting somewhere? Maybe some over-enthusiastic template editing 'corrected' the file "template/checkout/onepage.phtml"? Or maybe Simple Checkout depends on overriding Mage_Checkout_CheckoutController and another, recent extension has it's own override which is conflicting..?