Thread Starter
pexys
(@pexys)
Hi,
I create you an account on website with Shop Manager role with your email :
User name : SupportPW
Password : xHAl8e7ZhPWymS55PypO
Thanks !
I was able to log in however I am unable to view any orders. The screen stops halfway after loading which indicates a server error is occurring.
You can find out what is causing the crash by looking at the debug log file:
1. Log into your FTP site and edit wp-config.php
2. Set the following values (add the lines if they don’t exist):
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );
@ini_set( ‘display_errors’, 0 );
3. Return your WordPress admin area and view an Order to trigger the crash.
4. Now go back to FTP and view the file /wp-content/debug.log
5. Return to wp-config.php and set DEBUG back to false (reverting the changes made in Step 2)
Thread Starter
pexys
(@pexys)
Hello,
If you wish, I can give you access to FTP so you can do the manipulation yourself, it suits you?
thank you for your reply
Thread Starter
pexys
(@pexys)
Ok i sent you email with access FTP.
Please check 🙂
Have a nice day !
Just a quick update. The problem stems from the Ajax add to cart feature in your theme. It is not correctly pulling in all of the form fields (To / From / Message) and so that does not get added to the cart.
I am downloading your theme files to reproduce the problem locally to find a solution. As soon as I have an update I will let you know.
Thread Starter
pexys
(@pexys)
Ok contact me when is good.
I was able to find the problem. Your theme (Royal) uses a custom AJAX Add-To-Cart feature that hard codes the Quantity and Variation ID fields, rather than pulling in the entire form. As a result, the To / From / Message fields are never passed to the cart data.
Follow these steps to make the Add-to-cart process work correctly for the PW Gift Card product type:
1. Download the functions.php from your FTP server at /wp-content/themes/<your theme>/functions.php
2. Keep a backup of functions.php in case there are problems.
3. Edit functions.php and scroll to the very end and add this code.
Note: if the last line is “?>” then put this code *above* that line. Otherwise, this code goes at the very end of the file:
// Added by Pimwick, LLC (us@pimwick.com)
// Disable the AJAX add-to-cart for the PW Gift Cards product since it
// does not correctly add the fields to the cart item data.
function pimwick_et_option_ajax_addtocart( $value ) {
global $product;
if ( is_a( $product, 'WC_Product_PW_Gift_Card' ) ) {
return false;
}
return $value;
}
add_filter( 'et_option_ajax_addtocart', 'pimwick_et_option_ajax_addtocart' );
4. Save the functions.php file and re-upload it to your server.
If you have any problems, replace functions.php with your backup file.
Let me know if you have any questions!
Thread Starter
pexys
(@pexys)
Hi,
I use an other plugin that work perfectly.
Thanks !
Great, thanks for letting me know. Closing this ticket, let me know if there is anything else I can help with.