Hello there,
I have a simple PHP shopping cart that I bought from code canyon, It's called "Simple Cart"
What I need done is a simple tweak that changes the way the create the add to cart button form, and the way it's processed.
When we create a product button,
It takes the form values and creates an array of those vales called $product_settings.
if(isset($_POST['save']) && $_POST['save']){
$product_settings = array(
'name' => $_POST['name'],
'weight' => $_POST['weight'],
//'shipping' => $_POST['shipping'],
'attr' => ((is_array($_POST['attr'])) ? $_POST['attr'] : array()),
);
if(empty($_REQUEST['qdr'])){
$qd_settings = '';
}else{
$qd_settings = '<input type="hidden" value="'.$_REQUEST['qdr'].'" name="qd">';
}
$product_settings_encoded = base64_encode(serialize($product_settings));
$hash = md5('my not so s3cret code heh'.$product_settings_encoded);
$product_settings_encoded = $product_settings_encoded . '|' . $hash;
It serializes the array
It then encodes into Base64, as well as adding a hash, and separates with a |
I would like my vales to be raw and editable, in the form without being serialized, and without being encoded into Base64.
I also would like to get rid of the hash.
Once this part is done,
I will open up a new project for "Processing" this data, instead of the way it handles now, where it "unserializes" everything and reads the hash, etc.
please let me know
Thanks!
-------------------------------------------------------------------------------------------------------------------------------------------
Well I don't want the product settings "encoded"
I want everything to work the same way , without being encoded.
Hello, I think I saw this product on CodeCanyon too... I can help you to get rid of the hashes...
When I can start? I would like to take a look at the files first..
I'm ready!
Regards,
Andy.
$112 USD in 3 days
5.0 (39 reviews)
5.2
5.2
8 freelancers are bidding on average $110 USD for this job
Hello,
With 99% completion rate, 650+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page !!)... you can never go wrong choosing me :)
I look forward to your reply.
Thanks.
Kind Regards,
Rajesh Soni