vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - CartPlog: The Lite PayPal Shopping Cart (https://vborg.vbsupport.ru/showthread.php?t=161010)

calorie 10-26-2007 01:01 PM

Thanks again for the thanks. :)

Quote:

Originally Posted by Shazz (Post 1368857)
Lite version?, Where are the differences between the lite and full with the cost =\

See posts #27 and #28. Lite right now means a basic cart. Not sure at this point if there will be a pro version.

Quote:

Originally Posted by 777connect (Post 1368936)
... What about shipping charges. Is that there somewhere so that S/H is added to the order? ...

Not without modifying the code or adding shipping into the total price and making note of it in the description:
Code:

<input type="hidden" name="shipping_' . $cartplog['xnum'] . '" value="0.00" />

SVTCobraLTD 10-26-2007 03:56 PM

Looks good... will be installing later.

My current shopping cart is $4 to ship until they reach a certain amount of money spent and then its free. Is there a way to add that? Thank you very much for this, its great.

SVT

calorie 10-26-2007 04:06 PM

Look for the "HTML Variables for Individual Items in Third Party Shopping Carts" section on this page, the "Define item details" section on this page, and check this example. You might find something to use that can be added to the code to account for that shipping/price scheme.

basilrath 10-30-2007 04:23 PM

just a quickie i looked in paid subscriptions and cant see anything but the Paid Subscription Email Notification

how do find the rest

or do you have to set a group up or something to work this

yotsume 10-30-2007 05:27 PM

Installed on 3.6.4 and works perfect.

Yea I know, I know, I know, I need to update VB!

Now All I have to do is change the name of the cart so my members will have a clue!

Dabbi 10-30-2007 05:46 PM

This looks great! Is there a way for a specific user group of members to each have their own? Like a store for things they'd like to sell?

Although it would be great to be able to accept MO's, checks and Google payment down the road most of my members are PayPal users anyway (many are small eBay sellers). :)

yotsume 10-30-2007 06:34 PM

1. This is in dire need of some kind of permission settings ASAP. The store is either open or closed. We need to be able to limit access to the store to specific member groups or specific user IDs.

2. Future version where you can pay for a digital product and once you pay you are taken to a secure download area where you can download the product you purchased.

3. I have more suggest but I'll wait because this sucker is off to an awesome start and I need #1 on my suggestion list badly.

Thnaks!

yotsume 10-30-2007 07:12 PM

Ok I found a problem for lack of a better term...

When you click on "View Category" there is no way to tell which category you are actually viewing. You should make the title say: Category: xxxxxx

I mean this title should change just above ID and Thumb on that bar above those headings.

Permissions added yet? LOL Sorry I will have to nag until that is added to this

Wayne Luke 10-31-2007 01:02 AM

Can different options have different prices?

calorie 10-31-2007 11:20 AM

Quote:

Originally Posted by basilrath (Post 1372099)
just a quickie i looked in paid subscriptions and cant see anything but the Paid Subscription Email Notification ...

ACP -> CartPlog -> View Transactions

Quote:

Originally Posted by Dabbi (Post 1372153)
This looks great! Is there a way for a specific user group of members to each have their own? Like a store for things they'd like to sell? ...

Nope, there is no store per user option.

Quote:

Originally Posted by yotsume (Post 1372205)
... Permissions added yet? LOL Sorry I will have to nag until that is added to this

Nag? How about you check this article?

Quote:

Originally Posted by Wayne Luke (Post 1372425)
Can different options have different prices?

Nope, but this example could be used.

yotsume 11-01-2007 05:35 PM

CartPlog Footer Issue?
Please see attached screen shot.

The popular products block on the left side when I first go to my shopping cart breaks the default theme layout by extending into and past the footer. Once I refresh the page it corrects itself. This only happens when you first enter the shopping cart. If I clear the cache in Firefox it will break again and extend into the footer.

How can this problem be fixed? This board is on vBulletin 3.6.4 and to confirm with you your mod works perfect except this footer issue.

How to Add $ to Price
My second question. Can you show me how to add a $ before the cost of products please. So instead of 20 it would display as $20.

Thanks!

calorie 11-02-2007 05:42 AM

Quote:

Originally Posted by yotsume (Post 1373627)
... The popular products block on the left side when I first go to my shopping cart breaks the default theme layout by extending into and past the footer. ...

That page should be valid XHTML 1.0 Transitional so it might have something to do with how Firefox renders the page. See here for more information, and try letting Firefox completely load the page before you scroll.

Quote:

Originally Posted by yotsume (Post 1373627)
... Can you show me how to add a $ before the cost of products please. So instead of 20 it would display as $20. ...

You'll need to edit the CartPlog templates (search for currency) using & #36; (without spaces) for the dollar sign so not to have any confusion with variables.

yotsume 11-02-2007 06:10 AM

In internet explorer the shopping cart renders fine. In Firefox the page is loaded fully and I am not scrolling but again as my screen shot in my previous post shows the left side block breaks into the footer. Wish there was a way I could add code to prevent it from happing. Yea yea yea I know I need to update my board! LOL

Thanks for the $ hint. I will try to implement adding the $. Can you give me examples on how to add the $ code to a line in the templates.

Thanks,

EnIgMa1234 11-03-2007 11:12 PM

Quote:

Originally Posted by yotsume (Post 1374031)
In internet explorer the shopping cart renders fine. In Firefox the page is loaded fully and I am not scrolling but again as my screen shot in my previous post shows the left side block breaks into the footer. Wish there was a way I could add code to prevent it from happing. Yea yea yea I know I need to update my board! LOL

Thanks for the $ hint. I will try to implement adding the $. Can you give me examples on how to add the $ code to a line in the templates.

Thanks,

Lets say $variable is equal to 4

To get it to display $4 you would use

&_#36;$variable

Removing the red part

yotsume 11-03-2007 11:23 PM

Yea I figures out how to code the $. Now can you please fix the problem with the left blocks. Is there some code I can add to make sure the left blocks don't break into the footer.

Thanks

LEAD_WEIGHT 11-05-2007 04:37 AM

This is just for regular paypal or can it work for pro version.
https://www.paypal.com/cgi-bin/websc...erview-outside

sensimilla 11-06-2007 01:26 PM

Outstandig, I would love to see CMPS module for it :)
Or maybe theres a way to pull shoping cart and newest product modules on all pages ?
Any chance to make it work with vbseo ?

Thanks great hack!

ragtek 11-06-2007 05:47 PM

more options would be cool

for clothing you need size +color

sensimilla 11-08-2007 08:28 AM

subcategories ? watermarks for images ? additional payment processors ?
Seems this hack is unsupported, any chance for commercial version ?

calorie 11-08-2007 01:33 PM

Quote:

Originally Posted by yotsume (Post 1375240)
... Now can you please fix the problem with the left blocks. ...

That page should be valid XHTML 1.0 Transitional but you could try using different HTML if you want to change the look of the page.

Quote:

Originally Posted by LEAD_WEIGHT (Post 1376035)
This is just for regular paypal or can it work for pro version. ...

Regular.

Quote:

Originally Posted by sensimilla (Post 1376979)
Outstandig, I would love to see CMPS module for it :)
Or maybe theres a way to pull shoping cart and newest product modules on all pages ?
Any chance to make it work with vbseo ? ...

See below.

Quote:

Originally Posted by ragtek (Post 1377154)
more options would be cool

for clothing you need size +color

See below.

Quote:

Originally Posted by sensimilla (Post 1378299)
subcategories ? watermarks for images ? additional payment processors ?
Seems this hack is unsupported, any chance for commercial version ?

Yes, this modification is marked as unsupported, but other questions including the question about a commercial version have already been answered.

CartPlog was released on vBorg for people to use, but additional features are left up to individuals to code into the version of CartPlog on their server. Just because someone wants a feature doesn't mean that I'm going to code it. :)

markbolyard 11-13-2007 01:04 PM

Nice midification, but I have products that I can't edit or remove. Does this have to be done through the database?

fishhub 11-13-2007 03:53 PM

Oh, how i wish this could work for 3.5.x:o

cuphongle 11-13-2007 04:20 PM

Is there anyway we can add Cartplog on Navbar?

btw i try test to check out i got this error

Return to MerchantPayments By PayPal

We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.

calorie 11-13-2007 05:03 PM

Quote:

Originally Posted by markbolyard (Post 1381718)
Nice midification, but I have products that I can't edit or remove. Does this have to be done through the database?

You can edit and delete products via the ACP -> View Categories and click a products link.

Quote:

Originally Posted by fishhub (Post 1381808)
Oh, how i wish this could work for 3.5.x:o

It might work on vB 3.5 but you may need to edit the XML and then run some tests to see.

Quote:

Originally Posted by cuphongle (Post 1381831)
Is there anyway we can add Cartplog on Navbar?

btw i try test to check out i got this error ...

Reread step one of the installation directions and check how other links appear in the navbar: cartplog.php$session[sessionurl_q]

cuphongle 11-13-2007 05:11 PM

:( im not good at edit so can you please help me :) how to add navbar please :)
check how other links appear in the navbar: cartplog.php$session[sessionurl_q]
http://img155.imageshack.us/img155/887/picir1.jpg
this is all i got

calorie 11-13-2007 05:13 PM

Quote:

Originally Posted by cuphongle (Post 1381854)
... this is all i got

Please, reread step one of the installation directions. You are at the wrong ACP location.

cuphongle 11-13-2007 05:23 PM

oh nvm ahha i got heheh
anyway how do we add link to navbar?

calorie 11-13-2007 05:24 PM

Quote:

Originally Posted by cuphongle (Post 1381865)
... anyway how do we add link to navbar?

That has already been answered, but maybe someone else will post the HTML if you cannot figure it out. :)

NFLfbJunkie 11-13-2007 05:27 PM

In several posts back I asked:

"Is there a way to control the number tof products that show as popular products?"

You replied: "Find the popular products query in the code and add a limit to the query. There is no display order for products like there is for categories, but an order by clause could be added to the view category query."

What file and where exactly do I limit the number of products that display? I have tried quite few edits with no luck.

ragtek 11-13-2007 05:32 PM

i know that this is here standing:
Quote:

// do not hide, change, remove, etcetera !!!
$cartplog['powered_by'] = '<br /><div class="smallfont" align="center"><a href="http://www.photoplog.com/">' . $vbphrase['cartplog_powered_by_cartplog'] . ' ' . CARTPLOG_VERSION . '</a></div>';
but i need to put it left instead of center
am i allowed to do this?

calorie 11-13-2007 05:41 PM

Quote:

Originally Posted by Junkie (Post 1381868)
... What file and where exactly do I limit the number of products that display? I have tried quite few edits with no luck.

Find where $cartplog['popular_products'] is initialized in the cartplog.php file, and in the prededing query add a limit.

Quote:

Originally Posted by ragtek (Post 1381873)
i know that this is here standing:
but i need to put it left instead of center
am i allowed to do this?

Yes, you can move it to the left or right.

cuphongle 11-13-2007 05:41 PM

any of u guys have Cartplog added to Navbar???
i try look in every page but cant find it :)
help me out lolz

calorie 11-13-2007 05:47 PM

Quote:

Originally Posted by cuphongle (Post 1381883)
any of u guys have Cartplog added to Navbar???
i try look in every page but cant find it :)
help me out lolz

Via the ACP look at the vB navbar template. There are several links in that template that you can use as an example. Try it out. :)

ragtek 11-13-2007 05:49 PM

Quote:

Originally Posted by Junkie (Post 1381868)
In several posts back I asked:

"Is there a way to control the number tof products that show as popular products?"

You replied: "Find the popular products query in the code and add a limit to the query. There is no display order for products like there is for categories, but an order by clause could be added to the view category query."

What file and where exactly do I limit the number of products that display? I have tried quite few edits with no luck.

hi
look into the file at line 230(hope thats the right, i have modified my)
search for
PHP Code:

    $cartplog_product_infos $db->query_read("SELECT productid, catid, thumb, title, price
        FROM " 
TABLE_PREFIX "cartplog_products
        WHERE sales = " 
intval($cartplog_max_salescnt) . "
    "
);

    
$cartplog['popular_products'] = '';

    while (
$cartplog_product_info $db->fetch_array($cartplog_product_infos))
    {
        
$cartplog['product_productid'] = intval($cartplog_product_info['productid']);
        
$cartplog['product_catid'] = intval($cartplog_product_info['catid']);
        
$cartplog['product_thumb'] = strval($cartplog_product_info['thumb']);
        
$cartplog['product_title'] = htmlspecialchars_uni($cartplog_product_info['title']);
        
$cartplog['product_price'] = round(floatval($cartplog_product_info['price']), 2);

        eval(
'$cartplog[\'popular_products\'] .= "' fetch_template('cartplog_product_item') . '";');
        
$cartplog['popular_products'] .= '</tr><tr>';
    } 

here now limit the query
PHP Code:

WHERE sales " . intval($cartplog_max_salescnt) . " 

i hope thats it

NFLfbJunkie 11-13-2007 05:59 PM

Okay I find 3 instances of $cartplog['popular_products'] in the cartplog.php file. But I don't understand when you said "and in the prededing query add a limit."


PHP Code:

$db->free_result($cartplog_product_info);
$cartplog_product_infos $db->query_read("SELECT productid, catid, thumb, title, price
FROM " 
TABLE_PREFIX "cartplog_products
WHERE sales = " 
intval($cartplog_max_salescnt) . "
"
);
$cartplog['popular_products'] = '';
while (
$cartplog_product_info $db->fetch_array($cartplog_product_infos))
{
$cartplog['product_productid'] = intval($cartplog_product_info['productid']);
$cartplog['product_catid'] = intval($cartplog_product_info['catid']);
$cartplog['product_thumb'] = strval($cartplog_product_info['thumb']);
$cartplog['product_title'] = htmlspecialchars_uni($cartplog_product_info['title']);
$cartplog['product_price'] = round(floatval($cartplog_product_info['price']), 2);
eval(
'$cartplog[\'popular_products\'] .= "' fetch_template('cartplog_product_item') . '";');
$cartplog['popular_products'] .= '</tr><tr>';
}
$db->free_result($cartplog_product_infos);
$cartplog['popular_products'] = eregi_replace(preg_quote('</tr><tr>') . '$'''


cuphongle 11-13-2007 06:04 PM

hmm i tries this add this after that but doesnt work :(
<td class="vbmenu_control"><a href="cartplog.php$session[sessionurl_q]">$vbphrase[shopping]</a></td>

after this
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>

NFLfbJunkie 11-14-2007 12:52 AM

I am still trying to figure out how to limit the number of popular products that show on the main products page. The instructions given are not helping; not enough information really. More specific instructions would be greatly appreciated. Thanks.

cuphongle 11-14-2007 01:03 AM

true lolz
he/she trying make us do the hard thinking :)

dartho 11-19-2007 04:22 AM

Quote:

Originally Posted by cuphongle (Post 1381899)
hmm i tries this add this after that but doesnt work :(
<td class="vbmenu_control"><a href="cartplog.php$session[sessionurl_q]">$vbphrase[shopping]</a></td>

after this
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>

There is no "Shopping" phrase, if you want to use "Shopping" as the term you can create a new phrase, or hardwire "Shopping" as such:
HTML Code:

<td class="vbmenu_control"><a href="cartplog.php$session[sessionurl_q]">Shopping</a></td>

cuphongle 11-20-2007 08:18 PM

Quote:

Originally Posted by dartho (Post 1385324)
There is no "Shopping" phrase, if you want to use "Shopping" as the term you can create a new phrase, or hardwire "Shopping" as such:
HTML Code:

<td class="vbmenu_control"><a href="cartplog.php$session[sessionurl_q]">Shopping</a></td>

nice nice work :)
thanks you


All times are GMT. The time now is 01:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02334 seconds
  • Memory Usage 1,878KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_php_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete