Okay
  Public Ticket #343244
Product Style - Issue - URGENT
Closed

Comments

  • Nick started the conversation

    I just updated the theme... and the Product Style options are not good!  Please see the link - http://wholesale.adamimartucci.com/order

    I do not like the box there that just says "Select Option" - and then when hovering there are many little shopping bag icons that appear.

    Id does not matter if I change the product style option - they both look the same to what it is currently showing now.  Help!

    Thank you.

  • Nick replied

    Also: 

    The gallery slider with zoom on hover is not working.

    I am gerring weird "bullet points" by the magnifying search icon, and the social icons on bottom footer.  Side-out widgeth menu icon is also missing a line, when you click on it the side-out widget is all wonky.

    Very weird bugs going on...

    Just to confirm.  I manually deleted the old Salient files - I uploaded the new files.  I have cleared my cache as well.

  •  8,847
    Tahir replied

    Hey!

    Could you please provide a screenshot of the issues . Also could you allow us to log in so we can check on this for you more? . 

    Thanks 


    ThemeNectar Support Team 

  •   Nick replied privately
  •  8,847
    Tahir replied

    Hey Again!

    Please try deactivating all third party plugins and activate them one by one as this could likely be caused by a conflict from a plugin .. 
    Thanks 


    ThemeNectar Support Team 

  • Nick replied

    Hello Tahir.

    I tried that - still not working.  (All plugins are deactivated as of right now).

  • Nick replied

    Hello sorry to nag - but any help with this issue?

    I can't figure it out.

  •  1,071
    ThemeNectar replied

    Hey Nick,

    It seems to have something to do with your child theme active - please either modify the woocommerce related files in that or deactivate it to see the correctly functioning new WooCommerce related theme options

    Cheers

  • Nick replied

    OK - I reinstalled a completely new Child theme and reapplied all my customizations - and it seems like it is working now... Although your E-commerce demo looks a little different (like the plus and minus buttons)- but I am not tripping to hard on that.

    A few questions regarding the new E-commerce demo for Salient update.

    1. how did you get a cart to always appear (even if there is nothing in the cart)?

    2. In your demo when you hover over the cart when there are items in it, the items are nicely spaced. However in mine, there is A LOT of vertical space (looks like it's due to the variable options?)

    3. Is there I way I can just completely get rid of the product tabs? - preferably through CSS incase I want to bring them back later.

    4. how can I change related products to 4? instead of 3.

    Thank you for your support!

  • Nick replied

    Any help to questions above?

    (I figured out #3 already). 

    Thanks.

  •   Tahir replied privately
  • Nick replied

    How is it a custom code request if I am asking to make it look like how you have it advertised on your demos on theme forest?

  •  8,847
    Tahir replied

    Hey Again!

    If you want it to look like the demo. Could you please switch to the parent theme so that your child theme modifications are not altering the look. Also remove any css or custom code you have added to the woocommerce files as well as any plugins that might be customizing the look of the theme. 

    After removing all the amendments let us know what doesnt look like the demo so we can help you set it that way. 

    Thanks 


    ThemeNectar Support Team 

  • Nick replied

    Hello!

    Unfortunately - the site is live - so it's hard to deactivate many of the things you mentioned.

    However, all modifications to the child theme have only been in the function.php and directly affect Woo Commerce elements - that is it. (For instance, retail prices on products, and removing product tabs).

    CSS is very minimal - done through the Salient CSS option. None of the CSS affects the menu.

    My main concern is making the menu look like your new e-commerce demo. (See image).  I like how you have the perpetual cart.  My cart only appears when something is added to it.

    Additionally, when you hover of the the cart in the menu - the pop-up cart is weirdly formatted with A LOT of space/margin/padding.

    Lastly - my side menu is weirdly formatted.  The actual links do not line up with the text. 

    I have included all of the modifcations made to my child theme for your reference. I do not thin ANY of these should be affecting the look of the menus.

    Child theme CSS:


    .feature-right {

    text-align: right !important;

    }

    .my-cool-white, .my-cool-white .light, .my-cool-white h2, .my-cool-white h3, .my-cool-white h4, .my-cool-white p {

    color: #FFFFFF!important;

    }

    side-padding{

    margin-left:10%;

    margin-right:10%;

    }

    .handmade-padding{

    padding-right: 10% !important;

    padding-left: 10% !important;

    padding-bottom: 3% !important;

    padding-top: 3% !important;

    }

    body .container-wrap{

    background-color: #fff!important;

    }

    body .meta-author {

    display: none !important;

    }


    FUNCTIONS.PHP child theme:


    <?php

    // Use WC 2.0 variable price format, now include sale price strikeout

    add_filter( 'woocommerce_variable_sale_price_html', 'wc_wc20_variation_price_format', 10, 2 );

    add_filter( 'woocommerce_variable_price_html', 'wc_wc20_variation_price_format', 10, 2 );

    function wc_wc20_variation_price_format( $price, $product ) {

    // Main Price

    $prices = array( $product->get_variation_price( 'min', true ), $product->get_variation_price( 'max', true ) );

    $price = $prices[0] !== $prices[1] ? sprintf( __( 'MSRP From: %1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );

    // Sale Price

    $prices = array( $product->get_variation_regular_price( 'min', true ), $product->get_variation_regular_price( 'max', true ) );

    sort( $prices );

    $saleprice = $prices[0] !== $prices[1] ? sprintf( __( 'MSRP From: %1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );

    if ( $price !== $saleprice ) {

    $price = '<del>' . $saleprice . '</del> <ins>' . $price . '</ins>';

    }

    return $price;

    }

    add_filter( 'woocommerce_currencies', 'add_my_currency' );

    function add_my_currency( $currencies ) {

    $currencies['ABC'] = __( 'Currency name', 'woocommerce' );

    return $currencies;

    }

    add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);

    function add_my_currency_symbol( $currency_symbol, $currency ) {

    switch( $currency ) {

    case 'ABC': $currency_symbol = 'MSRP $'; break;

    }

    return $currency_symbol;

    }

    /**

    * Add new register fields for WooCommerce registration.

    *

    * @return string Register fields HTML.

    */

    function wooc_extra_register_fields() {

    ?>

    <p>

    <label for="reg_billing_first_name"><?php _e( 'First name', 'woocommerce' ); ?> <span>*</span></label>

    <input type="text" name="billing_first_name" id="reg_billing_first_name" value="<?php if ( ! empty( $_POST['billing_first_name'] ) ) esc_attr_e( $_POST['billing_first_name'] ); ?>" />

    </p>

    <p>

    <label for="reg_billing_last_name"><?php _e( 'Last name', 'woocommerce' ); ?> <span>*</span></label>

    <input type="text" name="billing_last_name" id="reg_billing_last_name" value="<?php if ( ! empty( $_POST['billing_last_name'] ) ) esc_attr_e( $_POST['billing_last_name'] ); ?>" />

    </p>

    <div></div>

    <p>

    <label for="reg_billing_company"><?php _e( 'Company / Store', 'woocommerce' ); ?> <span>*</span></label>

    <input type="text" name="billing_company" id="reg_billing_company" value="<?php if ( ! empty( $_POST['billing_company'] ) ) esc_attr_e( $_POST['billing_company'] ); ?>" />

    </p>

    <p>

    <label for="reg_billing_postcode"><?php _e( 'Zip Code', 'woocommerce' ); ?> <span>*</span></label>

    <input type="text" name="billing_postcode" id="reg_billing_postcode" value="<?php if ( ! empty( $_POST['billing_postcode'] ) ) esc_attr_e( $_POST['billing_postcode'] ); ?>" />

    </p>

    <?php

    }

    add_action( 'woocommerce_register_form_start', 'wooc_extra_register_fields' );

    /**

    * Validate the extra register fields.

    *

    * @param string $username Current username.

    * @param string $email Current email.

    * @param object $validation_errors WP_Error object.

    *

    * @return void

    */

    function wooc_validate_extra_register_fields( $username, $email, $validation_errors ) {

    if ( isset( $_POST['billing_first_name'] ) && empty( $_POST['billing_first_name'] ) ) {

    $validation_errors->add( 'billing_first_name_error', __( '<strong>Error</strong>: First name is required!', 'woocommerce' ) );

    }

    if ( isset( $_POST['billing_last_name'] ) && empty( $_POST['billing_last_name'] ) ) {

    $validation_errors->add( 'billing_last_name_error', __( '<strong>Error</strong>: Last name is required!.', 'woocommerce' ) );

    }

    if ( isset( $_POST['billing_company'] ) && empty( $_POST['billing_company'] ) ) {

    $validation_errors->add( 'billing_company_error', __( '<strong>Error</strong>: Company is required!.', 'woocommerce' ) );

    }

    if ( isset( $_POST['billing_postcode'] ) && empty( $_POST['billing_postcode'] ) ) {

    $validation_errors->add( 'billing_postcode_error', __( '<strong>Error</strong>: Billing Zip is required!.', 'woocommerce' ) );

    }

    }

    add_action( 'woocommerce_register_post', 'wooc_validate_extra_register_fields', 10, 3 );

    /**

    * Save the extra register fields.

    *

    * @param int $customer_id Current customer ID.

    *

    * @return void

    */

    function wooc_save_extra_register_fields( $customer_id ) {

    if ( isset( $_POST['billing_first_name'] ) ) {

    // WordPress default first name field.

    update_user_meta( $customer_id, 'first_name', sanitize_text_field( $_POST['billing_first_name'] ) );

    // WooCommerce billing first name.

    update_user_meta( $customer_id, 'billing_first_name', sanitize_text_field( $_POST['billing_first_name'] ) );

    }

    if ( isset( $_POST['billing_last_name'] ) ) {

    // WordPress default last name field.

    update_user_meta( $customer_id, 'last_name', sanitize_text_field( $_POST['billing_last_name'] ) );

    // WooCommerce billing last name.

    update_user_meta( $customer_id, 'billing_last_name', sanitize_text_field( $_POST['billing_last_name'] ) );

    }

    if ( isset( $_POST['billing_company'] ) ) {

    // WooCommerce billing phone

    update_user_meta( $customer_id, 'billing_company', sanitize_text_field( $_POST['billing_company'] ) );

    }

    if ( isset( $_POST['billing_postcode'] ) ) {

    // WooCommerce billing phone

    update_user_meta( $customer_id, 'billing_postcode', sanitize_text_field( $_POST['billing_postcode'] ) );

    }

    }

    add_action( 'woocommerce_created_customer', 'wooc_save_extra_register_fields' );

    add_action( 'woocommerce_before_customer_login_form', 'jk_login_message' );

    function jk_login_message() {

    if ( get_option( 'woocommerce_enable_myaccount_registration' ) == 'yes' ) {

    ?>

    <div>

    <p><?php _e( 'Returning Retailers login below. New Retailers register for next time so you can:' ); ?></p>

    <ul>

    <li><?php _e( 'View your wholesale discount' ); ?></li>

    <li><?php _e( 'View your order history' ); ?></li>

    <li><?php _e( 'Check on your orders' ); ?></li>

    <li><?php _e( 'Edit your Account Info' ); ?></li>

    <li><?php _e( 'Download Collateral' ); ?></li>

    </ul>

    <p><?php _e( 'Upon registration, your account will need to be confirmed by our office. Normally, your account is confirmed within an hour. If you need assistance, please do not hestitate to call us.' ); ?></p>

    </div>

    <?php

    }

    }

    add_shortcode( 'login-form', 'my_login_form_shortcode' );

    /**

    * Displays a login form.

    *

    * @since 0.1.0

    * @uses wp_login_form() Displays the login form.

    */

    function my_login_form_shortcode( $atts, $content = null ) {

    $defaults = array("redirect"=>site_url( $_SERVER['REQUEST_URI'] )

    );

    extract(shortcode_atts($defaults, $atts));

    if (!is_user_logged_in()) {

    $content = wp_login_form( array( 'echo' => false, 'redirect' => $redirect ) );

    }

    return $content;

    }

    // Woocommerce New Customer Admin Notification Email

    add_action('woocommerce_created_customer', 'admin_email_on_registration');

    function admin_email_on_registration() {

    $user_id = get_current_user_id();

    wp_new_user_notification( $user_id );

    }

    /**

    * Remove product tabs

    *

    */

    function woo_remove_product_tab($tabs) {

    unset( $tabs['description'] ); // Remove the description tab

    unset( $tabs['reviews'] ); // Remove the reviews tab

    unset( $tabs['additional_information'] ); // Remove the additional information tab

    return $tabs;

    }

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tab', 98);

    ?>

  •  1,071
    ThemeNectar replied

    Hey,

    You can get the cart to always show up when you have the ascend skin active in your general settings tab in your theme options panel. If you would like me to further troubleshoot your other items please allow me to log in so I can check on everything further

    Cheers