Skip to content

Grouped Products with Individual “Add To Cart” Button (Magento)

I am trying to set up a grouped product in Magento. What i am trying to accomplish is to add “add to cart” – button behind every grouped option that adds only this product to cart and not the hole grouped product. I have managed to get “read more” buttom to work with This will show product. …

Cant login to my wp-admin after switching to SSL

I recently installed SSL certificate for my wordpress site(http to https) and now I’m unable to access WordPress Admin. It refreshes the page and I am not logged in. Is there something I forgot to …

File upload PHP JPG issues

I’m getting confused while working with an file upload HTML form and some PHP to handle the input. In the form i have two file selects for images. When uploading an .png file i can get the file size etc using $_FILES. But when i’m trying to upload an .jpg file, i can’t get more then the file…

How can I prevent javascript code theft?

Actually I’m developing a Chrome extension and a jQuery plugin to upload it and sell it on Codecanyon. When I “Inspect source” of the page and I click on the “Resources” tab, the javascript file looks empty. How does Codecanyon do that? I want to have file theft prevention in my …

loading a view after an ajax call, CodeIgniter

I have an ajax call from javascript to a method in a controller, the method in the controller should be loading a view(like, show a new page on the screen), Although everything seems ok, the new view doesn’t seem to load on the screen. I cannot use header or windows.location because, i am passing an arr…

Best way to INSERT many values in mysqli?

I’m looking for a SQL-injection-secure technique to insert a lot of rows (ca. 2000) at once with PHP and MySQLi. I have an array with all the values that have to be include. Currently I’m doing that: I tried call_user_func_array(), but it caused a stack overflow. What is a faster method to do this…