Forum Replies Created
-
AuthorPosts
-
February 18, 2012 at 1:29 pm in reply to: Is it possible for a customer to save their shopping cart for later? #35088LouisMember
Thanks again, that’s a nice feature.
December 15, 2011 at 5:35 pm in reply to: About the "Item already exists in the cart" message #39713LouisMemberPS: leaving it blank like the following seems to work:
define("ESTORE_ITEM_ALREADY_EXISTS", "");
What are the consequences/potential issues of doing so, if any at all?
LouisMemberForgot to answer your question:
“Why do you want to remove the Add to Cart button?
How are people going to add the product to your cart?
I don’t think removing the buttons is a good idea.
I thought you liked fancy 3 but simply wanted the description added to it.”
Removing the cart button was simply for aesthetic reasons and practicality, i.e;
1) in the case where there is a product page, 99% of visitors are more likely to add to cart via the product page.
2) well, to reinforce what I just said above, and to optimise the space, so you can squish a bit more product, by streamlining the interface.
Yes, I liked Fancy 3 because it was the closest to what I wanted, but I found out that it was easier to remove from Fancy 5 (by proceeding by eliminations) than to add to the code in Fancy 3. Yes of course, I did/do backups.
I also notice that the error I pointed out in my previous post, did actually broke the site, so it was a good experience to see the result.
I won’t point the error because it reveals the root.
LouisMemberHi Peter, I had a quick look, there is an error on this line:
$output .= 'product_url.'"><i>'.$ret_product->name.'</i>';
LouisMemberHi Peter, just wanna say hi quickly, I haven’t had time to try the above code yet, but will come back soon. Thank you.
LouisMemberTo my good friend Peter,
I tweaked [wp_eStore_category_products_fancy id=1 style=5]
Can you tell me if the following code is ok;
Say if I want to remove the product title, price, add to cart and details buttons.
Basically, I am left with the picture and product description ONLY. Did I do this right?
What does the “200,150” means?
function show_wp_eStore_fancy5($id,$button_type=1,$clear=true,$show_price=1,$restriction='')
{
global $wpdb;
$products_table_name = WP_ESTORE_PRODUCTS_TABLE_NAME;
$ret_product = $wpdb->get_row("SELECT * FROM $products_table_name WHERE id = '$id'", OBJECT);
if($clear)
{
$output .= '<div class="eStore-fancy-clear"></div>';
}
$output .= '<div class="eStore-fancy5">';
$output .= '<div class="eStore-fancy5-thumb">';
$output .= eStore_extra_get_fancy_thumb_code($ret_product,200,150);
$output .= '</div>';
$output .='<div class="eStore-fancy5-body">';
$output .='<div class="eStore-fancy5-description">';
$output .='<div class="eStore-fancy5-product-name">';
$output .= '</div>';
$output .= html_entity_decode($ret_product->description, ENT_COMPAT,"UTF-8");
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
return $output;
}For those interested, as you can tell, my requirement for a category fancy style is rather smallish.
November 22, 2011 at 2:43 am in reply to: Code not working correctly [wp_eStore_category_products_fancy3 id=1] #23662LouisMemberAh, ok, well, by now I kind of know what they all look like. I have been playing with number 5 yesterday.
LouisMemberThank you, much appreciated, looking forward to it.
Should we get auto updates via email when available if we subscribed right – no need to do manual requests?
LouisMemberActually, because so I am so bad at php and css, I might look into style 5 not lol
LouisMemberHi Peter,
Thanks for your reply, yes I have noticed Style 5 actually, you are correct it might work, but because I am not good with PHP and CSS it would require extra styling; for instance I don’t want the “Details” showing, and the styling is to the left. Style 3 is kind of great.
So this is what I was trying just now, good timing by the way, I have just read your reply and I was going to post my findings.
This is what I did, I hope that the code won’t be truncated (I analysed style 5 and added to style 3, mind you, I don’t know what I am doing (I added the code in two areas were it shows “//added”) and for the css I just added from Style 5″.eStore-fancy3-description{margin:0px 7px 5px 0px;text-align:justify;overflow:hidden;max-height:115px;}”:
{
global $wpdb;
$products_table_name = WP_ESTORE_PRODUCTS_TABLE_NAME;
$ret_product = $wpdb->get_row("SELECT * FROM $products_table_name WHERE id = '$id'", OBJECT);
if($clear)
{
$output .= '<div class="eStore-fancy-clear"></div>';
}
$output .= '<div class="eStore-fancy3">';
$output .= '<div class="eStore-fancy3-thumb">';
$output .= eStore_extra_get_fancy_thumb_code($ret_product);
$output .= '</div>';
//added
$output .='<div class="eStore-fancy3-body">';
$output .='<div class="eStore-fancy3-description">';
//end
$output .='<div class="eStore-fancy3-footer">';
if(!empty($ret_product->product_url))
{
$output .= '<a href="'.$ret_product->product_url.'"><h3>'.$ret_product->name.'</h3></a>';
}
else
{
$output .= '<h3>'.$ret_product->name.'</h3>';
}
//added
$output .= '</div>';
$output .= html_entity_decode($ret_product->description, ENT_COMPAT,"UTF-8");
$output .= '</div>';
//end
if($show_price==1){
$output .= "<br />";
if(!empty($ret_product->old_price)){
$output .= '<div class="eStore_oldprice"><strong>'.ESTORE_OLD_PRICE.': </strong>'.WP_ESTORE_CURRENCY_SYMBOL.$ret_product->old_price.'</div>';
}
$output .= '<div class="eStore-fancy3-price-tag"><strong>'.ESTORE_PRICE.': '.print_digi_cart_payment_currency($ret_product->price, WP_ESTORE_CURRENCY_SYMBOL, ".").'</strong></div>';
}
$output .= eStore_extra_show_button_based_on_condition($id,$ret_product,$button_type,$restriction);
$output .= '</div></div>';
if($clear)
{
$output .= '<div class="eStore-fancy-clear"></div>';
}
return $output;
}As I said, I don’t know what I am doing, wether I missed or messed something up!
November 21, 2011 at 5:04 am in reply to: Code not working correctly [wp_eStore_category_products_fancy3 id=1] #23660LouisMemberDo I understand that the style 3 in grid style had a Product Description before?
If so, can I please have a copy of the styling, if it’s not too much to ask, and it will avoid me some headaches.
Also, as side note, as I am browsing this forum, I see some members being “Blocked”, why is that?
LouisMemberSo, would it be possible to get the cart picture (cart picture with green tick, showing when a item is added to cart) to link to the cart?
i.e the Cart page. As mentioned before, all you get is the hand cursor, and you cannot click on it.
I don’t think I am being demanding there? To my logic, it seems that what I am “asking” would be the correct behaviour.
LouisMemberI understand, thanks you.
I use the following short code [wp_eStore_display_compact_cart show_empty=1 show_sub_total=0 show_title=0 show_cart_image=1].
I see that on the HQ store website, when a product is added, the cart with the green tick doesn’t have the hand cursor.
Ideally it should link to the cart of course… and it would need a new entry (somewhere in the settings), because not everyone is using a cart page, so in that case it’s probably best to have it doing nothing.
So what does the new build fix/add exactly? I am a bit confused now.
edited (it would instead of I would…)
LouisMember@petreski, I know lolol! It’s me who commented this out deliberately, simply because it did not work in the sidebar widget (as explained).
So, I kept the code in there, just to remember and to watch out for it… I do that a lot. You know sometimes you learn something, and you forget… so this way I can always go back easily. Of course, I am SUPER organised as well, and I have back up of every tweak I learn as I go.
@admin, I currently have 6.1.2, which we received recently, is there a new version already? I think we subscribed for the automated updates, maybe to be on the safe side I’ll try again. Thank you
LouisMemberUnderstood. Is there a way to show the empty cart icon only here: http://louisg.org/cart/
I mean, would it be hard to do it?
An other question:
Setting:
Shopping Cart Header
Leave empty if you do not want the shopping cart header to appear
I left it empty, it’s not behaving as it should? As seen above.
-
AuthorPosts