Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CartPlog: The Lite PayPal Shopping Cart Details »»
CartPlog: The Lite PayPal Shopping Cart
Version: 1.0.0, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 10-23-2007 Last Update: Never Installs: 190
DB Changes Uses Plugins
Additional Files  
No support by the author.

CartPlog: The Lite PayPal Shopping Cart

CartPlog Lite is a shopping cart for PayPal payments. CartPlog Lite allows for categories, products, and options, and it keeps track of transactions by utilizing the PayPal IPN interface. The installation takes care of phrases, templates, tables, etcetera. Just follow the README.txt file for installation.

There is a license agreement that I request that you abide. Thanks!

This thread is organized as follows:
  • Post1 contains this here release.
  • Post2 contains other information.
Fine Print: see license agreement, no redistribution, copyright retained in full, right reserved to uncheck support box.

Requirements: vB 3.6.8+ (not tested on earlier versions)

Does it work on vB 3.5 and 3.6? See the requirements.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 11-13-2007, 05:41 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Junkie View Post
... 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 View Post
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.
Reply With Quote
  #73  
Old 11-13-2007, 05:41 PM
cuphongle cuphongle is offline
 
Join Date: Jul 2005
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any of u guys have Cartplog added to Navbar???
i try look in every page but cant find it
help me out lolz
Reply With Quote
  #74  
Old 11-13-2007, 05:47 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cuphongle View Post
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.
Reply With Quote
  #75  
Old 11-13-2007, 05:49 PM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Junkie View Post
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
Reply With Quote
  #76  
Old 11-13-2007, 05:59 PM
NFLfbJunkie NFLfbJunkie is offline
 
Join Date: Sep 2006
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>') . '$'''
Reply With Quote
  #77  
Old 11-13-2007, 06:04 PM
cuphongle cuphongle is offline
 
Join Date: Jul 2005
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #78  
Old 11-14-2007, 12:52 AM
NFLfbJunkie NFLfbJunkie is offline
 
Join Date: Sep 2006
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #79  
Old 11-14-2007, 01:03 AM
cuphongle cuphongle is offline
 
Join Date: Jul 2005
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

true lolz
he/she trying make us do the hard thinking
Reply With Quote
  #80  
Old 11-19-2007, 04:22 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cuphongle View Post
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>
Reply With Quote
  #81  
Old 11-20-2007, 08:18 PM
cuphongle cuphongle is offline
 
Join Date: Jul 2005
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08753 seconds
  • Memory Usage 2,343KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (3)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete