Pages:
Author

Topic: BitShop - cryptocurrency shopping cart script [PHP/MYSQL] (v1.1.2) - page 24. (Read 74795 times)

legendary
Activity: 1050
Merit: 1001
I'll keep the image thing in mind for the next release. Shouldn't be too hard.
So I can say that I asked, if you work on the code but dont plan on a new release for a while. I'd like it passed along if it's not too complicated. I actually have things I kinda need more than five images for.

Even if I didn't need more then 5 images, the squished 5th image is a pet peeve of sorts lol.

Ty.

Edit: Oh, one thing I did notice that I forgot to mention. When items are bought / paid for using the Coinbase API. They're not added to the RSS when it's enabled.
legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
I'll keep the image thing in mind for the next release. Shouldn't be too hard.
legendary
Activity: 1050
Merit: 1001
Nah I'm not going to include that mod in an official release, I think the Categories page should be the way to get more info abouts the cats, and I just don't really like the look of it. Plus that side menu is on every page, and that mod is too intensive to have it load on every page. But don't let me stop you from using it.
Fair enough, but what about the image thing I also mentioned ?

If nothing else, 8 images in two rows of four would be nice.

In the meantime even if you don't include it. Could you maybe tell m what the code would be to be able to use 8 images and have a lin break after the 4th since as I said before. The 5th as it stands gets side squished.

Ty.
legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
Nah I'm not going to include that mod in an official release, I think the Categories page should be the way to get more info abouts the cats, and I just don't really like the look of it. Plus that side menu is on every page, and that mod is too intensive to have it load on every page. But don't let me stop you from using it.
legendary
Activity: 1050
Merit: 1001
Anyway, now that all that's been settled... any info on these things ?

Just curious ;-)
In addition to my previous reply, any news on this ?
Quote
Also, how can I use more than 5 images / thumbnails per item and have them break after 4 on item view since the 5th gets squished due to set frame size in the code ?
I'll look into it.

Found it looking for this code so I can re-edit side.inc.php... any chance of this making it into the official release ? It's a rather nice addition if you recall why I requested it.


Replace this line:
Code:
                    echo "					"'>".$img_html.' '.safe_str($category['Name'])."";

With this:
Code:
					$total_cats = count_file_cat(safe_sql_str($category['CatID']));
$sub_cats = get_scats($category['CatID']);

if (!empty($sub_cats) && ($sub_cats != 'N/A')) {  
 while ($row = mysqli_fetch_assoc($sub_cats)) {
if ($row['Active']) {
 $total_cats += count_file_cat(safe_sql_str($row['CatID']));
}
 }
}

                    echo "               "'>".$img_html.' '.safe_str($category['Name'])." ($total_cats)";
 
legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
Either way all the coinbase stuff seems to work fine.
Good to know.
legendary
Activity: 1050
Merit: 1001
Apparently you were right and I never considered that, deal went through. Refreshed to confirmation screen back at my site shows as completed from admin and via coinbase.

Log on coinbase shows up 200 ok.

Refunded payment as before, that all went fine. Would be cool if the Status from the order page showed as refunded but not sure if that works like PayPals API where it sends a callback for any trans.

Either way all the coinbase stuff seems to work fine.
legendary
Activity: 1050
Merit: 1001
I believe a 500 error is what should happen when you click the Test Now button, because it's not providing any legit transaction data to the script. If it's a 200 error it probably means your callback secrets don't match. A 301 error must have something to do with your .htaccess file I'm guessing.
In that case, I'll make the link so it gives a 500 popup. Buy myself something that I already own and see what happens lol.

Will reply back after latest test.
legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
I believe a 500 error is what should happen when you click the Test Now button, because it's not providing any legit transaction data to the script. If it's a 200 error it probably means your callback secrets don't match. A 301 error must have something to do with your .htaccess file I'm guessing.
legendary
Activity: 1050
Merit: 1001
Install didnt do anything.

Even tried 755 & 777 permissions on the callback.php file.

So it looks like everything works but this damned API thing so, maintenance mode here I come ;-(
Maybe try to get a screenshot of the error so I can better understand what is happening. It may just be a bug with the coinbase code, you might be the first person to try it. I looked over the code and made a few small tweaks, but I couldn't see any problems with it, however I'll try it out myself later when I have time.
Not really an error to post, from: https://coinbase.com/merchant_settings

Go down to where the URL is set, hit Test Now button and no matter how I phrase the URL... I either get no popup or popups with a 301 or 500 error.

I looked at the callback.php file and it seems on a successful test I should get a popup with a 200 ok message.

Only time anything ever shows up in the Coinbase logs, Log button far right of Test Now button, is when I get the 301 or 500 error popups.

Also reset callback.php to 744
legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
Install didnt do anything.

Even tried 755 & 777 permissions on the callback.php file.

So it looks like everything works but this damned API thing so, maintenance mode here I come ;-(
Maybe try to get a screenshot of the error so I can better understand what is happening. It may just be a bug with the coinbase code, you might be the first person to try it. I looked over the code and made a few small tweaks, but I couldn't see any problems with it, however I'll try it out myself later when I have time.
legendary
Activity: 1050
Merit: 1001
Install didnt do anything.

Even tried 755 & 777 permissions on the callback.php file.

So it looks like everything works but this damned API thing so, maintenance mode here I come ;-(
legendary
Activity: 1050
Merit: 1001
.@MoreBloodWine: I didn't write the coinbase code so I can't really say what the issue is until I look into, and I don't really have much time right now. Did you try the .htaccess file from 1.0.0? Maybe try doing a fresh install using the install.php script? Try using a different web browser or different computer and see if that makes a difference. And no, you don't have to upgrade anything in the database. As for your question about the pages breaking, just remove the PHP code and replace it with what ever HTML you want. Eg:

My Title


My page text.


The .htaccess file I was referring to was the main one for my account where all the stuff for my different site address arle. All formatted like what I posted before.

So when you say try the one from 1.0.0 I assume you mean replacing my main one which would be a nono.

I also doubt it's a browser issue.

For the most part everything seems fine, I'm not even sure what the hell I'm supposed to see when a good call back test is made. Only ever got popups on the error stuff.

Kinda like the coinbase idea so as much as it will suck. I'll just dump my site in Maint Mode after fixing the pages like about etc until the callback / coinbase thing is figured out.

FWIW, I'll re-upload the install folder and try that since something in the install process might need to happen for this to all work the way it's supposed to. Will update / make new reply after trying the install.
legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
.@MoreBloodWine: I didn't write the coinbase code so I can't really say what the issue is until I look into, and I don't really have much time right now. Did you try the .htaccess file from 1.0.0? Maybe try doing a fresh install using the install.php script? Try using a different web browser or different computer and see if that makes a difference. And no, you don't have to upgrade anything in the database. As for your question about the pages breaking, just remove the PHP code and replace it with what ever HTML you want. Eg:

My Title


My page text.

legendary
Activity: 1050
Merit: 1001
In addition to my previous reply, any news on this ?
Quote
Also, how can I use more than 5 images / thumbnails per item and have them break after 4 on item view since the 5th gets squished due to set frame size in the code ?
I'll look into it.

Found it looking for this code so I can re-edit side.inc.php... any chance of this making it into the official release ? It's a rather nice addition if you recall why I requested it.


Replace this line:
Code:
                    echo "					"'>".$img_html.' '.safe_str($category['Name'])."";

With this:
Code:
					$total_cats = count_file_cat(safe_sql_str($category['CatID']));
$sub_cats = get_scats($category['CatID']);

if (!empty($sub_cats) && ($sub_cats != 'N/A')) {  
 while ($row = mysqli_fetch_assoc($sub_cats)) {
if ($row['Active']) {
 $total_cats += count_file_cat(safe_sql_str($row['CatID']));
}
 }
}

                    echo "               "'>".$img_html.' '.safe_str($category['Name'])." ($total_cats)";
 
legendary
Activity: 1050
Merit: 1001
I like how we can use Coinbase now for payments, seems a bit safer IMO.

Anyway, when I go to test the callback URL I get a pop up saying the following...

The page at https://coinbase.com says:

Error! Server responded with:

301 Moved Permanently

I don't understand why this would be happening, I have everything set up right or so I thought, here's what my URL looks like.

http://www.spend-ur-bits.com/sci/callback.php?s=

Even if I use: http://spend-ur-bits.com/sci/callback.php?s=

I get a 500 Internal error.

I even went as far as trying: https://spend-ur-bits.com/sci/callback.php?s=

I thought that worked because when I hit the Test button from Coinbase, I didnt get a popup of any sort. Logs didnt show anything but failed previous attempts. So I thought all was ok, did a test buy, sent the fund, still had like 9:30 on the timer. Ater payment was sent I go back to the site and get this in red letters.

ERROR: the transaction has not been confirmed!

So apparently my call back is broke an so is my store if I can't process coinbase payments.

Edit: I've come to realize it's my .htaccess or something in the code of the store but here's what's in my .htaccess file for my store address. I use the exact same for other URL's that always redirect to the www address, grant it they're all SMF forums, but it seems that the store is the only thing being funny.

Code:
#Spend-ur-Bits.com
RewriteCond %{HTTP_HOST} ^Spend-ur-Bits.com$ [OR]
RewriteCond %{HTTP_HOST} ^Spend-ur-Bits.turtle-tv.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.Spend-ur-Bits.turtle-tv.com$ [OR]

RewriteCond %{HTTP_HOST} ^turtle-tv.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.turtle-tv.com$
RewriteRule ^BTCShop\/?(.*)$ "http\:\/\/www\.Spend-ur-Bits\.com\/$1" [R=301,L]

Edi2: What should it say when successful in the popup and how will it's current "error" affect payments at all ? I did a test buy without payment and it loaded to the coinbase payment screen just fine with the 10 minute timer thing.

Speaking of that timer, is that adjustable at all ?

Edit 3: Was I supposed to do anything the way o the databases for upgrading from 0.9.9 to 1.0.0 ?

All I did was just remove the install folder and upload everything replacing everything already on the server for the store.

Edit 4: When I try to edit pages like about, they break...

Existing
Code:

echo LANG('ABOUT_TITLE'); ?>



echo LANG('TEXT_HERE'3' '); ?>


Shows
Code:
About Us
Your text goes here. Your text goes here. Your text goes here.

Edit Existing
Code:

echo LANG('ABOUT_TITLE'); ?>



echo LANG('Test...'3' '); ?>


Shows
Code:
About Us

legendary
Activity: 1050
Merit: 1001
I like how we can use Coinbase now for payments, seems a bit safer IMO.

Anyway, when I go to test the callback URL I get a pop up saying the following...

The page at https://coinbase.com says:

Error! Server responded with:

301 Moved Permanently

I don't understand why this would be happening, I have everything set up right or so I thought, here's what my URL looks like.

http://www.spend-ur-bits.com/sci/callback.php?s=

Even if I use: http://spend-ur-bits.com/sci/callback.php?s=

I get a 500 Internal error.

I even went as far as trying: https://spend-ur-bits.com/sci/callback.php?s=

I thought that worked because when I hit the Test button from Coinbase, I didnt get a popup of any sort. Logs didnt show anything but failed previous attempts. So I thought all was ok, did a test buy, sent the fund, still had like 9:30 on the timer. Ater payment was sent I go back to the site and get this in red letters.

ERROR: the transaction has not been confirmed!

So apparently my call back is broke an so is my store if I can't process coinbase payments.

The order did show as completed on coinbase and I refunded myself... so ya, thats my day so far with the new shop heh.

Edit: I've come to realize it's my .htaccess or something in the code of the store but here's what's in my .htaccess file for my store address. I use the exact same for other URL's that always redirect to the www address, grant it they're all SMF forums, but it seems that the store is the only thing being funny.

Code:
#Spend-ur-Bits.com
RewriteCond %{HTTP_HOST} ^Spend-ur-Bits.com$ [OR]
RewriteCond %{HTTP_HOST} ^Spend-ur-Bits.turtle-tv.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.Spend-ur-Bits.turtle-tv.com$ [OR]

RewriteCond %{HTTP_HOST} ^turtle-tv.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.turtle-tv.com$
RewriteRule ^BTCShop\/?(.*)$ "http\:\/\/www\.Spend-ur-Bits\.com\/$1" [R=301,L]

Edi2: What should it say when successful in the popup and how will it's current "error" affect payments at all ? I did a test buy without payment and it loaded to the coinbase payment screen just fine with the 10 minute timer thing.

Speaking of that timer, is that adjustable at all ?

Edit 3: Was I supposed to do anything the way o the databases for upgrading from 0.9.9 to 1.0.0 ?

All I did was just remove the install folder and upload everything replacing everything already on the server for the store.

Edit 4: When I try to edit pages like about, they break...

Existing
Code:

echo LANG('ABOUT_TITLE'); ?>



echo LANG('TEXT_HERE'3' '); ?>


Shows
Code:
About Us
Your text goes here. Your text goes here. Your text goes here.

Edit Existing
Code:

echo LANG('ABOUT_TITLE'); ?>



echo LANG('Test...'3' '); ?>


Shows
Code:
About Us

legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
thank you.
How can i reset the latest transaction list on the home page ? Dont find the infos anywhere..
All you should need to do is delete the inc/rss.inc file.
newbie
Activity: 4
Merit: 0
thank you.
How can i reset the latest transaction list on the home page ? Dont find the infos anywhere..
legendary
Activity: 1536
Merit: 1000
electronic [r]evolution
Please help, when i try to export my bitcoin keys it shows:

Quote
1,"14n2BiJxxxxtQSB51mfgbwVMU988UHvZbS","*** Invalid Ciphertext ***"

Private / Public keys should be fine.
Probably the only reason that can happen now is that you failed to properly copy the public key. Some other people who had that problem said that some web browsers don't select the full key properly when you double click in the text box because the key contains ':' characters. Log into the admin area and then go to Settings and then select RSA KEYGEN. Then generate a new RSA key pair and make sure to copy the full public key properly. Click inside the text box and use ctrl+a to select all the text.
Pages:
Jump to: