waila7
Forum Replies Created
-
It seems I changed settings after installation and it didin’t work.. after clear plugin installation I succeed.. Ahhh.. ??
Forum: Plugins
In reply to: [Simple Social Expandable] Pinterest button for feature imageOk, here it is ??
case 'pinterest': if (has_post_thumbnail($post->ID)) { $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); $arrButtonsCode[] = '<div class="simplesocialexpandable sse-buttom-pinterest" style="width:50px;"><!-- Pinterest--><a href="https://pinterest.com/pin/create/button/?url='.urlencode(get_permalink()).'&media='.$image[0].'&description='.urlencode(the_title()).'" class="pin-it-button" count-layout="horizontal" rel="nofollow"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></div>'; break; } else { ... break; }
Hey, Aaron,
Great news. “very soon” has any particular date? ??
Can we already see a changelog just to be prepared for upgrade.Thanks
Forum: Plugins
In reply to: [MarketPress - WordPress eCommerce] Multiple Shipping methodsPossible. Use Store Settings > Shipping Settings > choose “Weight rate” in Select Shipping Method dropdown menu.
Forum: Plugins
In reply to: [MarketPress - WordPress eCommerce] Removing out of stock items from displayYes, it is. Just delete it ??
In functions.php add:
//rewrite slug add_filter('post_type_link', 'waila7_permalink', 10, 3); function waila7_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, '%product_category%') === FALSE) return $permalink; // Get post $post = get_post($post_id); if (!$post) return $permalink; // Get taxonomy terms $terms = wp_get_object_terms($post->ID, 'product_category'); if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $taxonomy_slug = $terms[0]->slug; else $taxonomy_slug = 'product-category-missing'; return str_replace('%product_category%', $taxonomy_slug, $permalink); }
In marketpress.php register_post_type(‘product’..) change rewrite slug :
'rewrite' => array('slug' => '%product_category%', 'with_front' => true),
Hey,
It was my mistake for:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\wp-admin\includes\plugin.php on line 1286
error.
In functions.php I used
add_action( 'admin_init', 'delete_menu_items' );
instead of
add_action( 'admin_menu', 'delete_menu_items' );
it is not related with marketpress ??
I will make fresh install 2.5.2 later and will try..
Baden, thanks for updates.
In 2.5.1 version there are issue with emptying a cart. It throws:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\wp-admin\includes\plugin.php on line 1286
I saw it happens then I’m not logged in (shop visitor). When I’m logging in wp backend – where is no errors.
Just asking it is fix your update 2.5.2? If not, maybe you have any ideas where to start to fix this issue? I tried to clean cookies, but no luck.
Forum: Plugins
In reply to: [MarketPress - WordPress eCommerce] Warning: Illegal string offset 'email'After creating a new user it seems variable’s $mail value doesn’t exist;
Code in marketpress.php:
$email = (!empty($_SESSION['mp_billing_info']['email'])) ? $_SESSION['mp_billing_info']['email'] : $meta['email'];
So there is a need to assign it. I rewrite above line as this:
if (!empty($_SESSION['mp_billing_info']['email'])) { $email = $_SESSION['mp_billing_info']['email']; } else { if (!empty($meta['email'])) { $email = $meta['email']; } else { $email = ''; } }
we need to take care for $name, $address1, $address2, $city, $state, $zip, $country as well.
You may change the look of WP and this plugin style, products listing, by writing our own CSS.
In style.css file look for .mp_product_name.
Inside curly brackets add a linepadding-top:20px;
to sumarize:
.mp_product_name{ padding-top:20px; }
more about CSS padding https://www.w3schools.com/css/css_padding.asp
They are separate by default.. check if you are using query_posts() and wp_reset_query() properly..
* You may consider to change our CSS class ‘mp_product_name’ padding-top value to something 20px :)..
* An option is to use shortcodes/functions in your own category-$slug.php template file with grid..