Jump to content

raitis

Members
  • Posts

    16
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.raitis.lv

raitis's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. hi, I have a wordpress website http://www.cisapi.eu...-round-package/ below the item are the up-sell products (screenshot http://cisapi.eu/wp-...product/now.jpg) this is the code for the up-sell items: <?php/*** Single Product Up-Sells** @author WooThemes* @package WooCommerce/Templates* @version 1.6.4*/if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directlyglobal $product, $woocommerce, $woocommerce_loop;$upsells = $product->get_upsells();if ( sizeof( $upsells ) == 0 ) return;$meta_query = array();$meta_query[] = $woocommerce->query->visibility_meta_query();$meta_query[] = $woocommerce->query->stock_status_meta_query();$args = array('post_type' => 'product','ignore_sticky_posts' => 1,'no_found_rows' => 1,'posts_per_page' => $posts_per_page,'orderby' => $orderby,'post__in' => $upsells,'post__not_in' => array( $product->id ),'meta_query' => $meta_query);$products = new WP_Query( $args );$woocommerce_loop['columns'] = $columns;if ( $products->have_posts() ) : ?><div class="upsells products"> <h2><?php _e( 'Please choose the images you want to buy with the table', 'woocommerce' ) ?></h2> <?php woocommerce_product_loop_start(); ?> <?php while ( $products->have_posts() ) : $products->the_post(); ?> <?php woocommerce_get_template_part( 'content', 'product' ); ?> <?php endwhile; // end of the loop. ?> <?php woocommerce_product_loop_end(); ?></div><?php endif;wp_reset_postdata(); can anybody tell me which php file i have to modify to change the design of the up-sell items? i want them to look like this (screenshot http://cisapi.eu/wp-...roduct/then.jpg) thanks!
  2. yes, everything is working now. thanks!i used both, but i think now i used dsonesuk's code.
  3. i used now firefox instead of safari.now it works! :)thank you very very very much!
  4. what is the solution?i use mac osx and not windows/notepad.i copied the code, pasted it into dreamweaver and took it to paste into ebay (html). what am i doing wrong?
  5. i tried to add a separate css file, but this is how it looks (attachment)
  6. thanks, i used your code, but this is how it looks:http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=170912092366#ht_7578wt_1156
  7. thanks a lot!this looks great, but the images shift to the left.http://quop.eu/quop/wp-content/public/ebay.html but here is something wrong.should i make a css file and add all style to it and remove the styles from the html file?http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=170912092366#ht_2632wt_1156
  8. thanks! it worked. now it looks like this:http://quop.eu/quop/wp-content/public/ebay.html but when i try to use it, where its supposed to be it looks like this (the image gallery splits up)any idea why? http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=170912092366#ht_2864wt_1156
  9. ok. this way? <div align="center"> <table width="700" border="2" align="absolute"> <tr> <td width="120">Product ID:</td> <td>22222986</td> </tr> <tr> <td width="120">Product name:</td> <td>Fuel pump, Kraftstoffpumpe Mitsubishi Pajero III 3.2 DI-D shogun montero</td> </tr> <tr> <td width="120">Manufacturer:</td> <td>Mitsubishi</td> </tr> <tr> <td width="120">Part number:</td> <td>ME190711</td> </tr> <tr> <td width="120">Car:</td> <td>2004 Pajero, 3.2DID, 135.000Km, aut., 5 door, silver, leather, sport susp.</td> </tr> <tr> <td width="120">VIN:</td> <td>JMALYV78W43001154</td> </tr> <tr> <td width="120"> </td> <td> </td> </tr> </table></div>
  10. like this?<table width="966" class="kl_body" align="center" BORDER=6 BORDERCOLOR=#00afef margin=0 auto> <tr> <td height="300" valign="top" margin=0 position=floating> <p> Product description: </p></br> <table width="700" border="2" align="absolute">
  11. dear forum, i have this html:http://quop.eu/quop/wp-content/public/ebay.html and the table starts where it says "product description": i tried to center the table with this:align="center" but it just centers the text. how to center the table? and how to align the text to the left side? sincerely,raitis p.s. here is the code: <!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>quop.eu EBAY</title><style type="text/css">@charset "UTF-8";* {margin:0px;padding:0px;font-family:'Arial';text-align:center;border-collapse: collapse;}a {text-decoration:none; border:none;}img {border:none;}t1 {align:center}.kl_info {vertical-align:top;}.kl_m {width:1px; vertical-align:top;}.kl_vorschau {padding:3px;}.kl_vorschau img {border:1px solid black; width:634px; height:631x;}.kl_vorschau a img {width:100px; height:100px;}.kl_vorschau a .kl_foto {display:none; position:absolute; left:125px; width:720px; height:720px; border:1px solid black; margin:0px; padding:0px;}.kl_vorschau a:hover .kl_foto {display:block;} .kl_body tr td p {font-weight: bold;text-align: center;font-size: 24px;}</style><script type="text/javascript"></script></head><body><table width="966" class="kl_body" align="center" BORDER=6 BORDERCOLOR=#00afef> <tr> <td height="162"><a href="http://www.quop.eu" target="_blank"><img src="http://quop.eu/quop/wp-content/uploads/quopEU.jpg" width="966" height="162" longdesc="http://quop.eu/quop/wp-content/uploads/quopEU.jpg"></a></td> </tr></table></br><table width="966" class="kl_body" align="center" BORDER=6 BORDERCOLOR=#00afef> <td height="860" class="kl_m"> <div class="kl_vorschau kl_height_1"> </br> <t1> <a href="http://quop.eu/quop/wp-content/uploads/images/22222986_1.jpg" target="_blank"> <img src="http://quop.eu/quop/wp-content/uploads/images/22222986_11-150x150.jpg" alt="1"> <div class="kl_foto" style="background:url(http://quop.eu/quop/wp-content/uploads/images/22222986_11-720x720.jpg);background-repeat:no-repeat;"></div> </a> <a href="http://quop.eu/quop/wp-content/uploads/images/22222986_2.jpg" target="_blank"> <img src="http://quop.eu/quop/wp-content/uploads/images/22222986_21-150x150.jpg" alt="1"> <div class="kl_foto" style="background:url(http://quop.eu/quop/wp-content/uploads/images/22222986_21-720x720.jpg);background-repeat:no-repeat;"></div> </a> <a href="http://quop.eu/quop/wp-content/uploads/images/22222986_3" target="_blank"> <img src="http://quop.eu/quop/wp-content/uploads/images/22222986_31-150x150.jpg" alt="1"> <div class="kl_foto" style="background:url(http://quop.eu/quop/wp-content/uploads/images/22222986_31-720x720.jpg);background-repeat:no-repeat;"></div> </a> <a href="http://quop.eu/quop/wp-content/uploads/images/22222986_4.jpg" target="_blank"> <img src="http://quop.eu/quop/wp-content/uploads/images/22222986_41-150x150.jpg" alt="1"> <div class="kl_foto" style="background:url(http://quop.eu/quop/wp-content/uploads/images/22222986_41-720x720.jpg);background-repeat:no-repeat;"></div> </a> <a href="http://quop.eu/quop/wp-content/uploads/images/22222986_5.jpg" target="_blank"> <img src="http://quop.eu/quop/wp-content/uploads/images/22222986_51-150x150.jpg" alt="1"> <div class="kl_foto" style="background:url(http://quop.eu/quop/wp-content/uploads/images/22222986_51-720x720.jpg);background-repeat:no-repeat;"></div> </a> <a href="http://quop.eu/quop/wp-content/uploads/images/22222986_6.jpg" target="_blank"> <img src="http://quop.eu/quop/wp-content/uploads/images/22222986_61-150x150.jpg" alt="1"> <div class="kl_foto" style="background:url(http://quop.eu/quop/wp-content/uploads/images/22222986_61-720x720.jpg);background-repeat:no-repeat;"></div> </a> <img src="http://quop.eu/quop/wp-content/public/quop_logo.png" alt="1"> </t1> </tr></table></div></br><table width="966" class="kl_body" align="center" BORDER=6 BORDERCOLOR=#00afef> <tr> <td height="400" valign="top"><p> </p> <p> Product description: </p></br><center> <table width="700" border="2" align="center"> <tr> <td width="120">Product ID:</td> <td>22222986</td> </tr> <tr> <td width="120">Product name:</td> <td>Fuel pump, Kraftstoffpumpe Mitsubishi Pajero III 3.2 DI-D shogun montero</td> </tr> <tr> <td width="120">Manufacturer:</td> <td>Mitsubishi</td> </tr> <tr> <td width="120">Part number:</td> <td>ME190711</td> </tr> <tr> <td width="120">Car:</td> <td>2004 Pajero, 3.2DID, 135.000Km, aut., 5 door, silver, leather, sport susp.</td> </tr> <tr> <td width="120">VIN:</td> <td>JMALYV78W43001154</td> </tr> <tr> <td width="120"> </td> <td> </td> </tr> </table> </center></br></td> </tr></table></br> </body></html>
  12. thanks. but how can i know if my image is going to be portrait or landscape. i am trying to automate this process and i cant check each image.
  13. i am no coder.wordpress already generated different sizes automatically. (attachment)i dont know which lines to change and how...
  14. no other option?i am trying to resize them in html or css because i dont want to change the images itself.i need them to bee 1024px for some other applications.
  15. dear forum, i have two category logos as you can see here and in the attachment:http://quop.eu is it possible to get them in a row or do i need to do this in css?like this (attachment 2). here is the code of the page: <?php/*** Homepage Features Panel*/ /** * The Variables * * Setup default variables, overriding them if the "Theme Options" have been saved. */ global $woocommerce; $settings = array( 'thumb_w' => 100, 'thumb_h' => 100, 'thumb_align' => 'alignleft', 'shop_area' => 'false', 'shop_area_entries' => 3, 'shop_area_title' => '', 'shop_area_message' => '', 'shop_area_link_text' => 'View all our products', ); $settings = woo_get_dynamic_values( $settings ); ?> <section id="shop-home" class="home-section fix"> <header class="block"> <h1><?php echo stripslashes($settings['shop_area_title'] ); ?></h1> <p><?php echo stripslashes($settings['shop_area_message'] ); ?></p> <a class="more" href="<?php echo get_post_type_archive_link('product'); ?>" title="<?php _e( 'View all our products', 'woothemes' ); ?>"><?php echo $settings['shop_area_link_text']; ?></a> </header> <ul class="recent products"> <?php echo do_shortcode('[product_categories ids="140,15" columns="1"]'); ?> <?php $number_of_products = $settings['shop_area_entries']; $args = array( 'post_type' => 'product', 'posts_per_page' => $number_of_products, 'meta_key' => '_featured', 'meta_value' => 'yes' ); $first_or_last = 'first'; $loop = new WP_Query( $args ); $count = 0; while ( $loop->have_posts() ) : $loop->the_post(); $_product = &new woocommerce_product( $loop->post->ID ); $count++; ?> <li class="product <?php if ( $count % 3 == 0 ) { echo 'last'; } ?>"> <a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"> <div class="img-wrap"> <?php woocommerce_show_product_sale_flash( $post, $_product ); ?> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_thumbnail'); else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/placeholder.png" alt="Placeholder" width="'.$woocommerce->get_image_size('shop_catalog_image_width').'px" height="'.$woocommerce->get_image_size('shop_catalog_image_height').'px" />'; ?> </div> </a> <h3><a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <span class="price"><?php echo $_product->get_price_html(); ?></span> <?php woocommerce_template_loop_add_to_cart( $loop->post, $_product ); ?> <div class="fix"></div> </li> <?php if ( $count % 3 == 0 ) { echo '<li class="fix clear"></li>'; } ?> <?php endwhile; ?> </ul><!--/ul.recent--> </section> <?php wp_reset_query(); ?>
×
×
  • Create New...