Post by weyodaHK » Thu Dec 11, 2014 10:17 pm

Hello Guys,
I am a newbie here, not a coder. :)

Kindly please help me guide with the above issues I encountered:

I am using Opencart 2x default theme. no extensions being installed.

Issues:
I changed the image gradient background using with this css which I found from the css3wizardry/tag/safari.

below is the css

body {

font-family: 'Open Sans', sans-serif;
background-image:
linear-gradient(-45deg,
transparent 1%,
rgba(0,0,0,0.1) 15%,
rgba(0,0,0,0.1) 50%,
transparent 60%,
transparent 45%,
rgba(0,0,0,0.1) 65%);
background-size: 6px 6px;
}

And its gives me a very nice background image but the problem is, all the (featured) or product images has a white shades inside the box.

When I tried to click some certain products, Its gives me the error says: Parse error: syntax error, unexpected ')' in /home/mystore/public_html/system/library/image.php on line 91

below is the line 91 css:

$background = imagecolorallocatealpha($this->image, 255, 255, 255,);


Please advise as this is my first submission.

Thank you in advance.

Warm Regards,

weyodaHK

Newbie

Posts

Joined
Thu Dec 11, 2014 9:43 pm

Post by RonLens » Fri Dec 12, 2014 1:22 am

Change

Code: Select all

$background = imagecolorallocatealpha($this->image, 255, 255, 255,);
to

Code: Select all

$background = imagecolorallocatealpha($this->image, 255, 255, 255, 127);

Newbie

Posts

Joined
Wed Dec 10, 2014 3:37 am
Location - Germany

Post by weyodaHK » Fri Dec 12, 2014 3:36 am

Hi Ronles,

Thank you so much for the response.

I managed to solve the above issue except for the white border. I need more time to play along with this awesome OC ;)

Regards,

WeyodaHK

Newbie

Posts

Joined
Thu Dec 11, 2014 9:43 pm
Who is online

Users browsing this forum: No registered users and 51 guests