Home / Tag Archives: Ecommerce

Tag Archives: Ecommerce

Product is not showing on category page in magento 2.0.7

To show the product, check if the product following options: General->Status = Enabled general->Visibility = Catalog,Search Inventory->Qty > 0 Inventory->Stock Availability = In Stock Websites = checking your site Catgories = checking your category. If you want checking product to subcategory, go to Catalog->Manage Categories->Select your category, open tab Display …

Read More »

WOO-COMMERCE VARIABLE PRODUCT ADD CUSTOM FIELD IN VARIATIONS FOR VENDOR PRICE AND COMMISSION PRICE ON MRP

WOO-COMMERCE VARIABLE PRODUCT ADD CUSTOM FIELD IN VARIATIONS FOR VENDOR PRICE AND COMMISSION PRICE ON MRP

Code copy and past in them functions.php , its work fine. /*************for variable product**************/ // Add Variation Settings add_action( 'woocommerce_product_after_variable_attributes', 'variation_settings_fields', 10, 3 ); /** * Create new fields for variations * */ function variation_settings_fields( $loop, $variation_data, $variation ) { // Number Field woocommerce_wp_text_input( array( 'id' => '_vendor_price[' . $variation->ID …

Read More »

Woo-commerce simple product add custom field for vendor price and commission price on MRP

Woo-commerce simple product add custom field for vendor price  and commission price on MRP

Code copy and past in them functions.php , its work fine. add_action( 'woocommerce_product_options_pricing', 'wc_vendor_price_product_field' ); function wc_vendor_price_product_field() { woocommerce_wp_text_input( array( 'id' => 'vendor_price', 'class' => 'wc_input_price short', 'label' => __( 'Vendor Price', 'woocommerce' ) . ' (RS) ' ) ); } add_action( 'save_post', 'wc_vendor_price_save_product' ); function wc_vendor_price_save_product( $product_id ) { …

Read More »

Magento: How to check if current page is homepage?

1.) // Put your homepage-only code in here. 2.) if($this->getIsHomePage()) { echo 'You are in Homepage!'; } else { echo 'You are NOT in Homepage!'; } 3.) $routeName = Mage::app()->getRequest()->getRouteName(); $identifier = Mage::getSingleton('cms/page')->getIdentifier(); if($routeName == 'cms' && $identifier == 'home') { echo 'You are in Homepage!'; } else { echo …

Read More »
0

December 9, 2016

Clear all