pascalost
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Paypal based shippingThank you so much for your help.
- This reply was modified 8 months, 3 weeks ago by pascalost.
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Paypal based shippingHi, Same code as before with PayPal:
echo (do_shortcode(“[wp_cart_display_product name= ‘ $name ‘ description= ‘ $oldPrice ‘ price= ‘ $product_sale_price ‘ thumbnail=’ $image ‘ var1=’ $var1 ‘]”));
}hi, thanks for responding. I fixed it using sanitize_text_field() function. I should have done it in the first place. Another question if I may. Is there a way to resize the column in the shopping cart table?
Best regards,
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] wp_cart_display_productMy code was not done correctly.
incorrect one:
do_shortcode(‘[wp_cart_display_product name=’ . $title . ‘ price=’ .$product_price .’ thumbnail=’ . $image . ‘ var1=”Size|Small|Medium|Large”]’)good one:
do_shortcode(“[wp_cart_display_product name=’ $title ‘ price=’ $product_price ‘ thumbnail=’ $image ‘ var1=’Size|Small|Medium|Large’]”)Forum: Plugins
In reply to: [WP iCal Availability] Fatal ErrorHi,
My hosting is running 5.6.32 and it gave me a fatal error so I configured the php to 5.4 and it works with that version.Forum: Plugins
In reply to: [WP iCal Availability] Fatal ErrorHey the class.iCalReader is not compatible with PHP 5.6
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Shipping methodsThanks but I need something different. Is there a way to extend your plugin? What I need is to have base shipping for France, for Europe and outside Europe. Paypal doesn’t offer anything like that so I need to add the features in the plugin.
Regards
Forum: Plugins
In reply to: [Polylang] pagination errorIf I remove polylang plugin the pagination works like it should be
Forum: Plugins
In reply to: [Polylang] pagination errorI’m developing locally and have only one more plugin
Forum: Reviews
In reply to: [Polylang] Could not complete pagination with activated polylangHi Did you fixed it. I have the same issue
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] posts metaThanks a lot. it all I needed.
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] VariationsI use the var1 for my radio buttons other variations stay the same. I modified the scrip on line 380 to this
function ReadForm (obj1, tst)
{
// Read the user form
var i,j,pos;
val_total=””;val_combo=””;for (i=0; i<obj1.length; i++)
{
// run entire form
obj = obj1.elements[i]; // a form elementif (obj.type == “select-one”)
{ // just selects
if (obj.name == “quantity” ||
obj.name == “amount”) continue;
pos = obj.selectedIndex; // which option selected
val = obj.options[pos].value; // selected value
val_combo = val_combo + ” (” + val + “)”;
}if (obj.type == “radio”)
{ // just selects
if (obj.name == “quantity” ||
obj.name == “amount”) continue;
if (obj.checked == true){
val = obj.value;
val_combo = val_combo + ” (” + val + “)”;
}
}
}// Now summarize everything we have processed above
val_total = obj1.product_tmp.value + val_combo;
obj1.product.value = val_total;
}from line 414 to 423 (Variation 1) is now this
if (!empty($var1)) {
$var1_pieces = explode(‘|’, $var1);
$variation1_name = $var1_pieces[0];
$var_output .= ‘<span class=”wp_cart_variation_name”>’ . $variation1_name . ‘ : </span>
‘;
for ($i = 1; $i < sizeof($var1_pieces); $i++) {
$var_output .= ‘<input type=”radio” name=”variation1″ value=”‘ . $var1_pieces[$i] . ‘” /> ‘ . $var1_pieces[$i] . ‘
‘;
}
$var_output .= ‘
‘;}
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] VariationsBy the way. I made some changes to the wp_shopping_cart.php and I now have the possibility to have radio buttons instead of the dropdown.
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Variationsdone
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Variationsok thanks