zain.mr89
Forum Replies Created
-
Hi,
How did you solved this issue Marie ??
Forum: Hacks
In reply to: Change wp-admin urlHi skambram,
Thanx for your prompt reply. I’ve installed the plugin but where is the option to change the login page link ?Forum: Plugins
In reply to: [WooCommerce] Multiple paypal payment account based on product categoryI’ve done this. Sharing the code for others to get help ??
Add below code in “plugins\woocommerce\includes\gateways\paypal\includes\class-wc-gateway-paypal-request.php”
in the function “get_paypal_args” and replace “business => $this->gateway->get_option(email)” with “business => $business_email”
global $woocommerce;
// declare an array for the cart items category
$cat_id = array();// get all cart items
foreach ($woocommerce->cart->get_cart() as $cart_item_key => $values) {
$_product = $values[‘data’];
$terms = get_the_terms($_product->id, ‘product_cat’);foreach ($terms as $term) {
$_categoryid = $term->term_id;
}// insert each product category id in the array
$cat_id[] = $_categoryid;
}// check for the category of the products in the cart
// 54 5 19 20 are all category id
if (in_array(’54’, $cat_id)):
$business_email = ‘[email protected]’;
elseif (in_array(‘5′, $cat_id) || in_array(’19’, $cat_id) || in_array(’20’, $cat_id)):
$business_email = $this->gateway->get_option(’email’);
else:
$business_email = ”;
endif;Please let me know if this is possible now !!
Forum: Plugins
In reply to: Woocommerce Multisite – add product in two different sites (blog1 and blog2)Have you got any solution for this ??
I’m also trying to achieve the solution for this problem.Forum: Plugins
In reply to: [FeedWordPress] The import not works fineI’m having similar problem. Older feeds are not being imported.
Any idea ?