The log files on my site running php8 are filling up with this error:
PHP Warning: Undefined array key “SERVER_NAME” in /wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 896
There is an entry in the log every 5 minutes when the cron is run, ie standard wp cron is deactivated and cron is run via cron from the server. The ‘Server_Name’ variable is not set for php or wp-cli as I understand it.
I have searched for this issue online and see that other plugin developers have had to fix it, is it possible that you could have another look at this?
thanks in advance.
]]>I added the simple shopping cart plugin and set up the products and short codes (add to cart button and checkout page). When I use “edit page” to edit the page all is well. However, when I go to the URL: https://www.fargorockshop.com the product is not there.
I noticed that when I look at the source code the product is not there either. What is going on?
My theme is AmaTheme.
I can’t the magnifier to work either. Is that related?
I am a newbie and confused!!!
Thanks in advance for any help!
Chuck
https://www.ads-software.com/plugins/simple-e-commerce-shopping-cart/
]]>Thanks in advance for any help!
Chuck
]]>Thanks in advance for any help!
Chuck
https://www.ads-software.com/plugins/simple-e-commerce-shopping-cart/
]]>The Store field is just a comma separated list which is being pulled and displayed correctly, it’s the checkbox field Format that I’m having issues with. The values get pulled correctly from the post but they’re not being displayed in the select menu even though it’s being output as a non formatted list the same as the Stores values.
My template code:
<?php
$productid = get_the_title($post->ID);
$price = '5';
$variation = the_field('format');
$variation2 = get_field('stores');
echo print_wp_cart_button_for_product("$productid", "$price", "", "$variation", "$variation2" ); ?>
How it’s displaying
Should be noted I changed the required format of ‘|’ separated list for variations to comma separated in the plugin code, thinking this would help as default output of checkbox list is comma separated.
If anyone could point out where I’m noob-ing out/how can I get my checkbox values to display in the variation select that would be ace
Thanks in advance!
Webpage http//www.thereverendlisa.com
https://www.ads-software.com/extend/plugins/wordpress-simple-paypal-shopping-cart/
]]>Warning: session_start() [function.session-start]: open(/home/content/27/7631827/tmp/sess_lv8uadb89q68b8a11drn5ljd91, O_RDWR) failed: No such file or directory (2) in /home/content/27/7631827/html/wordpress/wp-content/plugins/wordpress-paypal-shopping-cart/wp_shopping_cart.php on line 22
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/content/27/7631827/html/wordpress/wp-content/plugins/wordpress-paypal-shopping-cart/wp_shopping_cart.php:22) in /home/content/27/7631827/html/wordpress/wp-content/plugins/wordpress-paypal-shopping-cart/wp_shopping_cart.php on line 22
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/27/7631827/html/wordpress/wp-content/plugins/wordpress-paypal-shopping-cart/wp_shopping_cart.php:22) in /home/content/27/7631827/html/wordpress/wp-content/plugins/wordpress-paypal-shopping-cart/wp_shopping_cart.php on line 22
Warning: Cannot modify header information – headers already sent by (output started at /home/content/27/7631827/html/wordpress/wp-content/plugins/wordpress-paypal-shopping-cart/wp_shopping_cart.php:22) in /home/content/27/7631827/html/wordpress/wp-includes/pluggable.php on line 881
Warning: Unknown: open(/home/content/27/7631827/tmp/sess_lv8uadb89q68b8a11drn5ljd91, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
https://www.ads-software.com/extend/plugins/wordpress-simple-paypal-shopping-cart/
]]><?php echo print_wp_cart_button_for_product(Title,ProductPrice); ?>
I have like 300 products, and the price and title are stored as either “The Title” or in a custom field for the product. Does anyone have any idea how to store the call for the custom field in a variable and then input it into that Shopping cart function above.
This post seems to give an answer: https://www.tipsandtricks-hq.com/forum/topic/coding-question-for-simple-cart-wp-plugin-with-custom-field-template-plugin
But I don’t understand where to add the following code:
$prodname = <?php echo c2c_get_custom('MMTname'); ?>
$prodprice = <?php echo c2c_get_custom('MMTprice'); ?>
in order to change things to this:
<?php echo print_wp_cart_button_for_product($prodname, $prodprice); ?>
Thanks!
]]>