Forum Replies Created

Viewing 12 replies - 31 through 42 (of 42 total)
  • Thread Starter jasewarner

    (@jasewarner)

    That sounds like a plan, thanks!

    Thread Starter jasewarner

    (@jasewarner)

    Aha! I found the fix… and of course it was an obvious mistake.

    In ajax.php on line 422, for some reason I had put the following code in:
    “‘variation_msg’ => __(‘(’) . wpsc_check_variation_stock_availability() . (‘ available)’),”

    When I should have done this:
    “‘variation_msg’ => __(‘(’) . $stock . (‘ available)’),”

    The variations are displaying correctly when selected.

    Thank you for your time and effort guys!

    Thread Starter jasewarner

    (@jasewarner)

    Hey guys,
    Was any of that information helpful?

    Thread Starter jasewarner

    (@jasewarner)

    That’s very kind of you to say so, thanks!

    Here’s a link to a screenshot of the variations for that particular product: https://www.dropbox.com/s/utin0vtlxgywnq9/Screenshot%202014-12-04%2017.32.26.png?dl=0

    And here’s a screenshot where it says there are no variations, even though they are declared: https://www.dropbox.com/s/kmnwhbwanjlqbr3/Screenshot%202014-12-04%2017.32.38.png?dl=0

    Thanks for your help guys.

    Thread Starter jasewarner

    (@jasewarner)

    Any ideas?

    This might be a shot in the dark, but has ‘wpsc_check_variation_stock_availability()’ been depreciated?

    Thanks for your help!

    Thread Starter jasewarner

    (@jasewarner)

    Sure, here’s the link to one of the products where the variation quantity is being displayed incorrectly: https://217.199.187.191/marierouillon.com/shop/jewellery/red-leather-ring/

    Here’s my variation related code for the single product template:

    <?php if (wpsc_have_variation_groups()) { ?>
    
                    <div class="wpsc_product_price">
                        <?php if(wpsc_product_is_donation()) : ?>
                            <label for="donation_price_<?php echo wpsc_the_product_id(); ?>"><?php _e('Donation', 'wpsc'); ?>: </label>
                            <input type="text" id="donation_price_<?php echo wpsc_the_product_id(); ?>" name="donation_price" value="<?php echo wpsc_calculate_price(wpsc_the_product_id()); ?>" size="6" />
                        <?php else : ?>
                            <?php wpsc_the_product_price_display(); ?>
                            <?php if(wpsc_product_has_stock()) { ?>
                                <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="stock-display in_stock"><?php echo ('(') . wpsc_check_variation_stock_availability() . ('?available)'); ?></div>
                            <?php } else { ?>
                                <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="stock-display out_of_stock"></div>
                            <?php } ?>
                        <?php endif; ?>
                    </div>
    
                    <fieldset>
                        <div class="wpsc_variation_forms">
                            <table>
                                <?php while (wpsc_have_variation_groups()) : wpsc_the_variation_group(); ?>
                                    <tr><td class="col1"><label for="<?php echo wpsc_vargrp_form_id(); ?>"><?php echo wpsc_the_vargrp_name(); ?>:</label></td>
                                        <?php /** the variation HTML and loop */?>
                                        <td class="col2"><select class="wpsc_select_variation" name="variation[<?php echo wpsc_vargrp_id(); ?>]" id="<?php echo wpsc_vargrp_form_id(); ?>">
                                                <?php while (wpsc_have_variations()) : wpsc_the_variation(); ?>
                                                    <option value="<?php echo wpsc_the_variation_id(); ?>" <?php echo wpsc_the_variation_out_of_stock(); ?>><?php echo wpsc_the_variation_name(); ?></option>
                                                <?php endwhile; ?>
                                            </select></td></tr>
                                <?php endwhile; ?>
                            </table>
                        </div>
                    </fieldset>
    
                <?php } else { ?>
    
                    <div class="wpsc_product_price">
                        <?php if(wpsc_product_is_donation()) : ?>
                            <label for="donation_price_<?php echo wpsc_the_product_id(); ?>"><?php _e('Donation', 'wpsc'); ?>: </label>
                            <input type="text" id="donation_price_<?php echo wpsc_the_product_id(); ?>" name="donation_price" value="<?php echo wpsc_calculate_price(wpsc_the_product_id()); ?>" size="6" />
                        <?php else : ?>
                            <?php wpsc_the_product_price_display(); ?>
                            <?php if(wpsc_product_has_stock()) { ?>
                                <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="stock-display in_stock"><?php echo ('(') . wpsc_product_remaining_stock() . ('?available)'); ?></div>
                            <?php } else { ?>
                                <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="stock-display out_of_stock"></div>
                            <?php } ?>
                        <?php endif; ?>
                    </div>
    
                    <fieldset>
                        <div class="wpsc_variation_forms">
                            <table>
                                <?php while (wpsc_have_variation_groups()) : wpsc_the_variation_group(); ?>
                                    <tr><td class="col1"><label for="<?php echo wpsc_vargrp_form_id(); ?>"><?php echo wpsc_the_vargrp_name(); ?>:</label></td>
                                        <?php /** the variation HTML and loop */?>
                                        <td class="col2"><select class="wpsc_select_variation" name="variation[<?php echo wpsc_vargrp_id(); ?>]" id="<?php echo wpsc_vargrp_form_id(); ?>">
                                                <?php while (wpsc_have_variations()) : wpsc_the_variation(); ?>
                                                    <option value="<?php echo wpsc_the_variation_id(); ?>" <?php echo wpsc_the_variation_out_of_stock(); ?>><?php echo wpsc_the_variation_name(); ?></option>
                                                <?php endwhile; ?>
                                            </select></td></tr>
                                <?php endwhile; ?>
                            </table>
                        </div>
                    </fieldset>
    
                <?php } ?>
    Thread Starter jasewarner

    (@jasewarner)

    Hey Silvo,

    Thanks for the reply.

    Example post: https://www.gatogato.co.uk/what-is-a-dutch-butler-part-1/

    Plenty of other plugins used in the posts pages, they are namely Twitget, Soundcloud is Gold, KNR Authors List, Jamie’s Social Icons, and Social Author Bio.

    There’s no special way of inserting images into posts, just standard with a featured image.

    Hope this helps to solve the issue!

    Keep me posted please.

    Thanks,
    Jase

    Thread Starter jasewarner

    (@jasewarner)

    Oh and now the plugin has completely crashed so NO images whatsoever are showing… not good! Definitely going to be looking for an alternative now.

    Thread Starter jasewarner

    (@jasewarner)

    Seems to happen once or twice a day, intermittently – not constantly when Twitget is activated.

    For instance, an hour ago it was not working and the entire sidebar wasn’t showing in my site because of Twitget. Now though, Twitget seems to be working fine as I have placed the widget back into the sidebar and everything is working fine.

    Thanks for your help

    Thread Starter jasewarner

    (@jasewarner)

    Thanks for getting back to me.
    I’m using the WordPress Bootstrap theme – the Twitter feed doesn’t show, nope.
    Does that help?

    Thread Starter jasewarner

    (@jasewarner)

    Thanks to TimTee for fixing this issue in a previous thread:

    “In case anyone else has this same frustrating problem, I removed jquery.animate-enhanced.js from the js folder, and it solved the issue immediately.”

    TimTee, Amazing! Thank you for that fix – this was driving me crazy!

Viewing 12 replies - 31 through 42 (of 42 total)