WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] Newbie (24 posts)

  1. alqin
    Member
    Posted 2 years ago #

    Hello,
    So I installed eShop.
    1. Created a page "Shop".
    2. Created some products.
    3. Added "Shop" as parent for products
    4. Added "Shop" to menu.

    Now when I click Shop I want to see all those products with:
    1. price, image(i set futured image), title
    2. add to chart button(this only to update the chart, on the siderbar)
    4. Only 4 products on that page with pagination on the bottom

    I want to mach this format: http://mlitexas.com/v2/products.png

    I played with the shortcodes but I did not manage to obtain the requirements above.

    I build the site, I'm just new to eShop.

    Is this correct? When I want different categories for different products, I create a page that will be the parent of some products and then that page on the menu under "Shop", this way I'll have different categories for products.

    Thanks

    http://wordpress.org/extend/plugins/eshop/

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. alqin
    Member
    Posted 2 years ago #

    Awesome. I knew about that page but I just made a newbie mistake to copy and paste the attributes from table and there were some added characters that made me go insane, didn't know what i miss. Now I know. Just hand type is not that long.
    Thanks a lot.

  4. alqin
    Member
    Posted 2 years ago #

    How do you create pagination in eShop?

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Pagination is already built into the shortcodes and can be controlled by the records attribute in the product listing shortcodes.

  6. alqin
    Member
    Posted 2 years ago #

    Thanks, I just discovered that after asking. At least, someone will read it and find it helpful.

  7. alqin
    Member
    Posted 2 years ago #

    Whit function bellow I add a specified image size:
    add_image_size( 'product-thumb', 206, 206, true )
    How can I get my specified image size instead of futured image thumbnail?

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    You can't. eShop uses the core WordPress featured image functionality.

  9. alqin
    Member
    Posted 2 years ago #

    So the trick is to play with the thumbnail percentage until you get to desired dimensions.

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    No. You need to amend the dimensions of the thumbnails in Settings -> Media to suit your needs. Then install & run http://wordpress.org/extend/plugins/regenerate-thumbnails/ to resize any existing thumbnails.

  11. alqin
    Member
    Posted 2 years ago #

    Thanks.
    What is a good practice to change html markup?
    I use panels but want to put title above and does not have any class applied to it(is an a tag), to hook onto it.

  12. esmi
    Forum Moderator
    Posted 2 years ago #

    You can't change the markup produced by the shortcode.

  13. alqin
    Member
    Posted 2 years ago #

    Thanks.
    Is there a way that products added to chart to have a different style after refreshing the page?

  14. esmi
    Forum Moderator
    Posted 2 years ago #

    That's a theme/CSS issue - not an eShop.

  15. alqin
    Member
    Posted 2 years ago #

    Yes but after I add a product to chart how do I know after refreshing the page what products are in the basket so that I can add a style? Is there any css class added to a product if is in the basket?

  16. esmi
    Forum Moderator
    Posted 2 years ago #

    If you want to display what is in the cart immediately, try adding the Improved Cart widget to your sidebar via Appearance -> Widgets. If you want to style the main cart page, you'll need to use CSS. Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  17. alqin
    Member
    Posted 2 years ago #

    Thanks,
    Can sku be made to auto generate itself?

  18. alqin
    Member
    Posted 2 years ago #

    From where is coming 1 at the end of $_SESSION['eshopcart']?
    I want to display a count of items on top of the page, but I also want to keep the ability to add to widget chart so I can't set “Add to cart, without going to cart page.” to “No”.

  19. alqin
    Member
    Posted 2 years ago #

    I just discovered that on this page:
    http://quirm.net/wiki/eshop/additional-plugins-and-code-snippets/display-cart-item-count/ the code is wrong. There is one more parenthesis and $cart_count should be $cart_item_count. The corrected code tested:

    // Return the total amount of items in the shopping cart
    function get_myeshop_cart_itemcount(){
    
    	global $blog_id;
    
    	$total_items_in_cart = 0;
    	if(isset($_SESSION['eshopcart'.$blog_id])) {
    		$item_array = $_SESSION['eshopcart'.$blog_id];
    		foreach($item_array as $item) {
    			$total_items_in_cart = $total_items_in_cart + $item['qty'];
    		}
    	}
    	return $total_items_in_cart;
    }
    // Display number of items in shopping cart
    function display_my_cart_items() {
    	$cart_item_count = get_myeshop_cart_itemcount();
    	if ( $cart_item_count > 1 ) printf('%d %s', $cart_item_count, __('items', 'theme'));
    	else echo __('Empty','theme');
    }
  20. esmi
    Forum Moderator
    Posted 2 years ago #

    Can sku be made to auto generate itself?

    No - sorry.

    I've corrected the typos on typos on http://quirm.net/wiki/eshop/additional-plugins-and-code-snippets/display-cart-item-count/ Thanks for the heads-up. :-)

  21. alqin
    Member
    Posted 2 years ago #

    Glad I could help.
    Thanks for a great plugin and support.

  22. alqin
    Member
    Posted 2 years ago #

    On the page product how do you add images? Normally as you would add them to a page?
    The futured image is shown on product listing and if I want to see it in product page I have to inserted in text area. I this so?

  23. alqin
    Member
    Posted 2 years ago #

    With the image I figure it out.
    How do you add shipping to total price?

  24. esmi
    Forum Moderator
    Posted 2 years ago #

    Pleas try reading the plugin's extensive documentation: http://quirm.net/wiki/eshop/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags