Estoy haciendo una web con wordpress y con un plugin de tienda virtual, concretamente WP e-commerce.
En el archivo "miweb/themes/tema/loop-single.php" de mi tema aparece lo siguiente:
Código HTML:
<a class="single-addtocart et-shop-item" href="#<?php echo boutique_product_name('entry'); ?>"><?php esc_html_e('Añadir al carro', 'Boutique'); ?></a>
Código HTML:
<!-- THIS IS THE QUANTITY OPTION MUST BE ENABLED FROM ADMIN SETTINGS --> <?php if(wpsc_has_multi_adding()): ?> <fieldset><legend><?php _e('Quantity', 'wpsc'); ?></legend> <div class="wpsc_quantity_update"> <?php /*<label for="wpsc_quantity_update_<?php echo wpsc_the_product_id(); ?>"><?php _e('Quantity', 'wpsc'); ?>:</label>*/ ?> <input type="text" id="wpsc_quantity_update_<?php echo wpsc_the_product_id(); ?>" name="wpsc_quantity_update" size="2" value="1" /> <input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>"/> <input type="hidden" name="wpsc_update_quantity" value="true" /> </div><!--close wpsc_quantity_update--> </fieldset> <?php endif ;?> <div class="wpsc_product_price"> <?php if( wpsc_show_stock_availability() ): ?> <?php if(wpsc_product_has_stock()) : ?> <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="in_stock"><?php _e('Product in stock', 'wpsc'); ?></div> <?php else: ?> <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="out_of_stock"><?php _e('Product not in stock', 'wpsc'); ?></div> <?php endif; ?> <?php endif; ?> <?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 if(wpsc_product_on_special()) : ?> <p class="pricedisplay product_<?php echo wpsc_the_product_id(); ?>"><?php _e('Old Price', 'wpsc'); ?>: <span class="oldprice" id="old_product_price_<?php echo wpsc_the_product_id(); ?>"><?php echo wpsc_product_normal_price(); ?></span></p> <?php endif; ?> <p class="pricedisplay product_<?php echo wpsc_the_product_id(); ?>"><?php _e('Price', 'wpsc'); ?>: <span id='product_price_<?php echo wpsc_the_product_id(); ?>' class="currentprice pricedisplay"><?php echo wpsc_the_product_price(); ?></span></p> <?php if(wpsc_product_on_special()) : ?> <p class="pricedisplay product_<?php echo wpsc_the_product_id(); ?>"><?php _e('You save', 'wpsc'); ?>: <span class="yousave" id="yousave_<?php echo wpsc_the_product_id(); ?>"><?php echo wpsc_currency_display(wpsc_you_save('type=amount'), array('html' => false)); ?>! (<?php echo wpsc_you_save(); ?>%)</span></p> <?php endif; ?> <!-- multi currency code --> <?php if(wpsc_product_has_multicurrency()) : ?> <?php echo wpsc_display_product_multicurrency(); ?> <?php endif; ?> <?php if(wpsc_show_pnp()) : ?> <p class="pricedisplay"><?php _e('Shipping', 'wpsc'); ?>:<span class="pp_price"><?php echo wpsc_product_postage_and_packaging(); ?></span></p> <?php endif; ?> <?php endif; ?> </div><!--close wpsc_product_price--> <input type="hidden" value="add_to_cart" name="wpsc_ajax_action"/> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>" name="product_id"/> <!-- END OF QUANTITY OPTION --> <?php if((get_option('hide_addtocart_button') == 0) && (get_option('addtocart_or_buynow') !='1')) : ?> <?php if(wpsc_product_has_stock()) : ?> <div class="wpsc_buy_button_container"> <div class="wpsc_loading_animation"> <img title="Loading" alt="Loading" src="<?php echo wpsc_loading_animation_url(); ?>" /> <?php _e('Updating cart...', 'wpsc'); ?> </div><!--close wpsc_loading_animation--> <?php if(wpsc_product_external_link(wpsc_the_product_id()) != '') : ?> <?php $action = wpsc_product_external_link( wpsc_the_product_id() ); ?> <input class="wpsc_buy_button" type="submit" value="<?php echo wpsc_product_external_link_text( wpsc_the_product_id(), __( 'Buy Now', 'wpsc' ) ); ?>" onclick="return gotoexternallink('<?php echo $action; ?>', '<?php echo wpsc_product_external_link_target( wpsc_the_product_id() ); ?>')"> <?php else: ?> <input type="submit" value="<?php _e('Add To Cart', 'wpsc'); ?>" name="Buy" class="wpsc_buy_button" id="product_<?php echo wpsc_the_product_id(); ?>_submit_button"/> <?php endif; ?> </div><!--close wpsc_buy_button_container--> <?php endif ; ?> <?php endif ; ?>
¿Cómo puedo hacer para que el contenido de esta parte del plugin aparezca directamente, o bien cómo puedo hacer para llamar a estas funciones desde la página loop-single.php?
Gracias.