Show Posts


Messages - cookie

Pages: 1 [2] 3 4 5
16
Support / Re: SQL Error when trying to upgrade
« on: January 27, 2014, 11:11:54 AM »
don't know what to say ... mine worked.
the only thing I had to watch is to replace their ac_ bit with mine ...

17
Support / Re: SQL Error when trying to upgrade
« on: January 27, 2014, 11:04:43 AM »
oh, by the way ...
It could be the database prefix

As I did the upgrade manually I have noticed that the tables in the sql upgrade file have an "ac_" before so in case you called your table prefix differently you need to change that.

I know I had to change that bit in the sql file so maybe the issue is connected to it?

@abolado Thanks for the tip! didn't know about that!

18
Support / Re: SQL Error when trying to upgrade
« on: January 27, 2014, 10:29:07 AM »
wow, you could do an update from within the admin?
I didn't find any such option so I just did the manual upgrade.
Maybe you try that too?

Good luck!

19
Support / Re: Options dropdown BUG in product
« on: January 27, 2014, 10:26:37 AM »
Hi,
I made the upgrade but sadly the above issue was not solved.
Just like before, I can only see 10 (TEN) global attributes in the dropdown menu under "Edit Product > Options > Add New Option".
What happened with the promised fix?
Could you please check and post a feedback here please?
Right now I cannot use more than 10 Global Attributes because of this bug.

Thank you.

20
Template Support / Re: Short product description ?!?
« on: January 26, 2014, 05:37:02 PM »
Hey guys, you are cool  ::)

I got this one working eventually  ;D

Here's the damn  :o code :

add this on top of product_listing.tpl

Code: [Select]
<?php
function myTruncate($string$limit$break="."$pad="...") {

if(
strlen($string) <= $limit) return $string

if(
false !== ($breakpoint strpos($string$break$limit))) {

if(
$breakpoint strlen($string) - 1) { 
$string substr($string0$breakpoint) . $pad
}
 }
 return 
$string;
 }
 
?>

than add this bit of code where you want your short description to show (I used it just bellow the image):

Code: [Select]
<div class="productdiscrption">
            <?php
$shortdesc 
myTruncate($product['description'], 150" "); 
echo 
"$shortdesc"?>
<a class="details" href="<?php echo $item['info_url']?>">[read more]</a></div>

Replace 150 chars with the nr. of characters you want.
The above code keeps the last word (not truncating it :))

hey, we are fixing abantecart  8)

21
Template Support / Re: Short product description ?!?
« on: January 26, 2014, 01:23:04 PM »
I don't understand ... why can't I truncate the description !?!? It's quite a common function, no?
My problem is that I am not a programmer, I know a few things here and there, but not that much ..
That's why I hope to find some php guru around here to help with these little things  ::)

22
Template Support / Re: Short product description ?!?
« on: January 26, 2014, 09:16:58 AM »
Gordon, look in product.tpl file !
The
Code: [Select]
product['description'] is actually THE code outputing the FULL product description (the one and only you can enter in admin).

All I am trying at this stage is to truncate that description somehow to be able to get the first X characters or Y words.

I just need the damn ( :o) php code for this as my version is for whatever reason not working  >:(

You know php?

23
Template Support / Re: Short product description ?!?
« on: January 25, 2014, 08:26:34 PM »
and than the same text will appear in the main product page as well  :(
I also doubt I'll want to modify image files anytime I have a small text change (leave alone the fact that it's quite difficult to find an image in the image library)

So I still need the php part I am afraid ...

(hey, but thx!)

24
Template Support / Re: Styling options blocks on product page
« on: January 25, 2014, 08:22:26 PM »
Hi
I am pretty good at CSS but I am afraid that it's 1st a php issue as I need to attach that second class MY_CLASS_Maybe_option_type_or_id , and I do not know how  :(

25
Support / Re: How to pull image description in template?
« on: January 25, 2014, 08:20:17 PM »
well, the thing is I want to display products with a bunch of images and options, each image and each option earning their very own description.

So I thought I could make use of that image description to achieve that and yes, that would require to edit the product.tpl
But it's obvious that the parameter "image [description]" was lost somewhere along the way and it does not work.

I managed to pull the title with
Code: [Select]
<?php echo $image['title']; ?> but when I try
Code: [Select]
<?php echo $image['description']; ?> that brings out nothing!!

I also did not get it working for the options images, that seems to be an other story
I do not seem to find any of the info I need  >:(

26
Template Support / Styling options blocks on product page
« on: January 25, 2014, 07:37:07 PM »
Hi.

How can I differently style the different types of options if they ALL have the same class ?!?!
I would like to have more groups of radio-box options positioned in floating blocks one near the other and not each option bellow the previous one. Imagine you have 10 groups of options - the way it is now, I'll end up with an endless list all in one column  :(

I would like to have at least a modifier class aside the standard
Code: [Select]
<div class="control-group "> class.

Something like
Code: [Select]
<div class="control-group "MY_CLASS_Maybe_option_type_or_id">
But HOW to get that second bit inthere as I cannot figure ANY parameters here  :(

Answer appreciated!

Thank you!

27
Template Support / Re: Short product description ?!?
« on: January 25, 2014, 07:31:04 PM »
ANYONE?

28
Support / Re: How to pull image description in template?
« on: January 25, 2014, 06:10:22 PM »
Hi,

Well actually I am looking for the php bit to get that image description.
I tried
Code: [Select]
<?php echo $image['description']; ?> but it does nothing.
The info is saved in the database but something is not properly defined somewhere.

Nope, that bit is not used as "alt", just the name is used everyhwere and for everything. Wonder why ?!?

This is the code from product.tpl
Code: [Select]
<img src="<?php echo $image_url?>" alt="<?php echo $image['title']; ?>" title="<?php echo $image['title']; ?>">
I'd like to display that description bellow the image, there is not that much info on the page anyways.

Do you have an idea how to get that working?

Thx

29
Support / How to pull image description in template?
« on: January 24, 2014, 06:18:04 PM »
Hi,
I noticed that images have a field called "description" attached to them, but that information is not used anywhere!

How can I pull the description in php to include it in a template?
(and by the occasion, maybe the image title as well)

Thanks!

30
Support / Re: Theme slider - how to get that working?
« on: January 24, 2014, 05:44:56 PM »
OK, got it working eventually  ;D
I haven't noticed the "banner" part in the create block extension.
All is good now!

Pages: 1 [2] 3 4 5

Powered by SMFPacks Social Login Mod