• I’ve been trying various combinations of the examples and can’t seem to come up with one that will give what I want. I want two dropdowns. One with “Member” and “Non-member” plus a price for each. The second with no pricing, just two options, in this case, days for the class. Something like “Thursdays” and “Saturdays”. Any suggestions would be appreciated.
    Steve P

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mike Castro Demaria


    Hi @pritchs,

    Can you be more precise, with examples of the SC you are using please ?
    About members, is it linked to a logged user or non-logged users or just a choice ?
    Please be much more precise as you can, it’s helped a lot.

    Thread Starter pritchs


    [wp_cart:Test Product:price:[Class|Class 1, 100|Class 2,200|Class 3,300]:Product:price:var1[Days|Thursdays|Saturdays ]:end]

    My syntax is most certainly wrong, but this is an example of what I’m looking for. It would produce one drop down with the label of “Classes” and show “Class 1”, “Class 2″, Class3” as three choices in the drop down.

    Then there would be a second drop down labeled “Days” and show “Thursdays” and “Saturdays” in the drop down.

    Both fields would show up in the cart and in the order so that the user would know that someone signed up for “Class 2” and selected “Thursdays” as the night they want to attend.

    When I use the SC above, I get a PHP error:

    Warning: A non-numeric value encountered in /app/public/wp-content/plugins/wp-ultra-simple-paypal-shopping-cart/wp_ultra_simple_shopping_cart.php on line 406

    This seems to happen whenever shipping isn’t included in the SC.

    The rest of the error message is as follows:

    #	Time	Memory	Function	Location
    1	0.0012	366848	{main}( )	.../index.php:0
    2	0.0031	367136	require( '/app/public/wp-blog-header.php' )	.../index.php:17
    3	0.6479	7672936	require_once( '/app/public/wp-includes/template-loader.php' )	.../wp-blog-header.php:19
    4	0.8071	8153560	include( '/app/public/wp-content/themes/generatepress/page.php' )	.../template-loader.php:74
    5	0.8823	8524952	generate_construct_sidebars( )	.../page.php:62
    6	0.8824	8524976	get_sidebar( )	.../sidebars.php:34
    7	0.8824	8525352	locate_template( )	.../general-template.php:110
    8	0.8830	8525432	load_template( )	.../template.php:647
    9	0.8835	8525776	require_once( '/app/public/wp-content/themes/generatepress/sidebar.php' )	.../template.php:688
    10	0.8839	8529872	dynamic_sidebar( )	.../sidebar.php:37
    11	0.8845	8531368	show_wp_paypal_shopping_cart_widget( )	.../widgets.php:742
    12	0.8848	8531360	print_wpus_shopping_cart
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode help’ is closed to new replies.