Sidebar column shopping cart for OpenCart Version 2/3

Hi, today we are publishing another free Opencart module “Sidebar Shopping Cart” and we made this for OpenCart version 2.0.3.1. Problem is we cannot edit js file with vQmod so you need to override the common.js file. But we have described where you need to put the extra code below in this post.

JS/CSS files are rendered at the browser level, not at the server level, so vQmod has no effect on these files. You can, however, create new files and use vQmod to alter the tpl files to point to these new CSS/JS files.

Output after installing the module is shown as in the image below:

sidebar shopping cart
Sidebar Shopping Cart

You can see how we copied the header cart section and show it as a module inside the cart box or side shopping cart. You can show anywhere you like as this is a module so you can show at the left column, right column or top content or bottom content.

Download the module from here:

Download Sidebar shopping cart OpenCart free module

Installation:

  1. Unzip the downloaded folder.
  2. Upload the files in the root folder to your server, the common.js file is overwritten so if you have any kind of custom javascript used then please transfer to the file and upload the common.js.
  3. Then activate the Shopping Cart module.

Activating the Sidebar Shopping Cart module:

  1. After uploading files to servers, it’s time to install Sidebar shopping cart module
  2. We are showing the sidebar shopping cart in the right column but you can show it wherever you like as this is acts as a normal module.
  3. Go to Admin section
  4. Then click on Extensions on the left menu
  5. After that Click Modules and go to “Shopping Cart” in the modules list
  6. Then click the green button to install the module (see the image below)
installation of module
installation_of_module

Then click the blue edit button

After that, you will see the form which has the status field, select “Enabled” and then click the Save button.

Your module is active and is ready to use in the layout.

Setup layout for the sidebar shopping cart at home page:

  1. From the admin section go to System >> Design >> Layouts.
  2. You will see a list of layouts, from which edit the “Home” layout.
  3. Then click Blue add the button to add rows at module section which is shown in the image below:
siderbar shopping cart installation
siderbar_shopping_cart_installation

Second, you choose the Shopping Cart in the module column and Column right in the Position column and insert the sort order as required.

Then click save button

Your custom sidebar shopping cart is showing in the right column of the home page. Likewise, you can show in many other layouts and pages.

Codes to added to common.js if you don’t want to override it:

  1. Open catalog/view/javascript/common.js
  2. Find the following lines of code
    $('#cart > ul').load('index.php?route=common/cart/info ul li');
  3. Just below it add following lines of code
    $('#shoppingcart > span').load('index.php?route=module/shoppingcart/info span');
  4. There are around 4 places where you have to add the above code.
  5. Then save the common.js file and upload it to the server and the module works perfectly.
  6. Your module is ready to use in other places except for the product detail page.

Making changes in the product detail page to make our module works:

  1. Go to catalog/view/theme/YOURTHEMENAME/product/product.tpl
  2. Find the following lines of code.
    $('#cart > ul').load('index.php?route=common/cart/info ul li');
  3. Just below it add following lines of code
    $('#shoppingcart > span').load('index.php?route=module/shoppingcart/info span');
  4. Then save and upload to the server and Sidebar shopping cart is ready to be used on the product page also.

Now click add to cart button and see how shopping cart animation changes the details with the use of Ajax functionality.

Let me know if you get any problem with performing the above tasks in the comment so that we can help if you have any.

OpenCart reCAPTCHA to show in registration and contact us page Part 2

In part 1 we showed how to activate google reCaptcha in contact us page, now we show how to show it on the registration page. Although it is not that simple as showing in the contact us page, we have to make some changes in code. For now, we are changing directly into the default file although it is not recommended :). We will try to provide OCMOD soon in the next post so you need to wait for the next post.

Go to the link below to see how to set up in OpenCart version 2.3.0.1
https://webocreation.com/set-google-recaptcha-basic-captcha-opencart-2-3-0-1

SEE for Opencart 3: Set up google reCaptcha in Opencart version 3

Steps are as follows:

Changes to be made at the language file:

  1. First go to catalog/language/english/account/ and open register.php file.
  2. Add the following code to the end of the file.
    $_['text_google_recaptcha']= 'Google reCaptcha';
    $_['error_captcha'] = 'Verification code does not match the image!';
  3. Save the file

Changes to be made at the controller file:

  1. Go to catalog/controller/account/ and open register.php file
  2. Find the following lines of code which is inside the index method
    $data['column_left'] = $this->load->controller('common/column_left');
  3. Just above that code paste following code
    $data['text_google_recaptcha'] = $this->language->get('text_google_recaptcha');
    if (isset($this->error['captcha'])) {
    $data['error_captcha'] = $this->error['captcha'];
    } else { $data['error_captcha'] = ''; }
    if ($this->config->get('config_google_captcha_status')) {
    $this->document->addScript('https://www.google.com/recaptcha/api.js');
    $data['site_key'] = $this->config->get('config_google_captcha_public');
    } else { $data['site_key'] = ''; }
  4. Now find the following lines of code which is inside the validated method.
    // Agree to terms
    if ($this->config->get('config_account_id')) {
    $this->load->model('catalog/information');
    $information_info = $this->model_catalog_information->getInformation($this->config->get('config_account_id'));
    if ($information_info && !isset($this->request->post['agree'])) {
    $this->error['warning'] = sprintf($this->language->get('error_agree'), $information_info['title']); } }
  5. Now above that code paste following code.
    if ($this->config->get('config_google_captcha_status')) {
    $recaptcha = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=' . urlencode($this->config->get('config_google_captcha_secret')) . '&response=' . $this->request->post['g-recaptcha-response'] . '&remoteip=' . $this->request->server['REMOTE_ADDR']);
    $recaptcha = json_decode($recaptcha, true);
    if (!$recaptcha['success']) {
    $this->error['captcha'] = $this->language->get('error_captcha');
    }
    }
  6. Save the file and your controller is ready

Changes to be made at the template theme file:

  1. Go to catalog/view/theme/default*/account/ and open register.tpl, default* means if you are not using default theme then it will be theme name you are using.
  2. Find the following line of code
    <?php if ($text_agree) { ?>
  3. Just above the code above, paste the following code
    <fieldset>
    <legend><?php echo $text_google_recaptcha; ?></legend>
    <?php if ($site_key) { ?>
    <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
    <div class="g-recaptcha" data-sitekey="<?php echo $site_key; ?>"></div>
    <?php if ($error_captcha) { ?>
    <div class="text-danger"><?php echo $error_captcha; ?></div>
    <?php } ?>
    </div>
    </div>
    <?php } ?>
    </fieldset>
  4. Save the file

Now go to your registration page and you will see the page like below:

Activate google recaptcha at registration page in Opencart
Activate google ReCaptcha at registration page in Opencart

Let us know if we missed anything and if you need any help.

Thanks
Rupak Nepali

Laravel Shop Coming Soon

Hi to all,

I have started to read laravel and started it with registering http://laravelshop.com and all my updates will be posted at laravelshop.com. Today I make logo and set up server and register domain. Likewise I set up facebook page https://www.facebook.com/pages/Laravel-Shop/1420260531616136

GitHub page is https://github.com/rupaknepali/laravelshop

Google plus page : https://plus.google.com/+Laravelshop-page/about

Logo designed as below, I am not good at designing but also I managed to make as following taking laravel logo and opencart logo 🙂

laravel shop logo
laravel shop logo

I try to keep you update daily how I am moving with laravel and how i achieve updates in laravelshop.com

Thanks
Rupak Nepali

Create a class diagram for free and store it privately and collaborate with multiple users

0

I was searching for the best website where I can create a class diagram for free and I found Cacoo which provides a website to create class diagram for free and can store it privately and collaborate with multiple users. Being a developer I have to design a class diagram, flow charts, business organizational chart, matrix diagram, Venn diagram, SWOT diagram, and schedule diagram and many more. I was looking for a free and private class diagram and found this Cacoo and am very happy to use it and it’s drag and drop system is so easy to use.

create class diagram  for free
create class diagram for free

We can draw:

  1. Business Diagram like: Business organizational chart, matrix diagram, Venn diagram, SWOT diagram, and schedule diagram
  2. Flow Chart
  3. Mind Map
  4. Network Map like network diagram and AWS design template
  5. Office layout
  6. Sitemap
  7. Wireframe for different devices
  8. UML where you can draw state machine diagram, use case diagram, sequence diagram, class diagram, activity diagram, package diagram
  9. Database design
  10. Greeting Card design, Happy New Year, happy holidays, happy birthday and many more
  11. Electronics diagrams like Ohm’s law
  12. And also contained User-defined Templates.

So containing many drawing sections, I am happy to use it and hope it keeps on providing a free account. https://cacoo.com/

Bokagiri part 2: Dad called me when he read my previous status and told me

Second-week status Update: Dad called me when he read my previous status and told me following things 🙂

Pachilo status padeyachan buda ley.

Dad ko phone aiyoo.
Choro k cha sarai bigreychas yo sab yeklo pan ley garda vako ho abba bihe garnu parcha, kt ta taliley nai khojiyako chas hola.

Yo sunna sath hindi film ma jasto purai flash back ma gaiyoo…
10 class samma love vaniyako taha thiyana
12 class ma kt thiyana
Abba bachelor ma ta keai hola vaniyako bachelor ma pani khalee boka gang purai sukka.
Kam pani Freelancer vai gariyoo ani kaha bata kt khojnu, dukkha bujiyo abba master garchu vane garna bidesh lagiyo ani Mastery ma k vannu ba sab kali matra thiyee.
Aile kam garna suru gariyoo office ma sabbai budi matra ba. ani maile kasaree KT khojnu. Yo flashback ko douran budaley k k vanee kunni.
Ani mailee Dad ailee time vako chaina vanee.

Dad: Maile tero age ma timi haru tin jana daju vai lai janmai sakiyako thiyee yo ajjai time vako chaina vancha. Bujney lai kasaree bujaunu. Suteako manchelai po uthauna sakincha. Suteako natak garne lai kasaree uthaunu. Ani sun, talai euta warning cha hai Bihe chai Nepal mai aai garnu parche ne. Buda ley yo kura pani milayarai vaniyaka hunu buda lai thaha cha yo programmer ho khale error lai matra dhyan dincha warning lai didaina vaannee.
Ani office kasto cha ta dad ko question.
Babbal cha dad, 2 din dhilo gako thiyee gadi kinee diyo, ani ma pani bato vai laptop pani slow vairako cha vandai chu 🙂. Ani Office ma bachha bachi ko matra kura huncha dad, sab jana budi chan, matra k vaniyako thiyee.
Budaley tero pani kapal ta chaina ta vane peylee halee.

Ani buda pani hasey ma chai mutu mathi dhunga rakhi hasna chai chodina hai.

Yesaree nai beer ko sur ma lekhak vako suchana 🙂

Happy Weekend

कुरोः असारे महिना, हातमा ठेला उठाई खनी तयार पारेको खेतमा

असारे महिना, हातमा ठेला उठाई खनी तयार पारेको खेतमा पानी लगाई, कच्याक–कच्याक गरी थिचेको अालि । अालि थिच्दा थिच्दै भत्केको कान्लो अनि कुद्दै गई  बनाएको कान्लो अनि फेरि उहि कच्याक–कच्याक गरि थिचेको आलि। अनि थिचेको आलि लगाएर टलपल टलपल पारी जमाएको पानी।

अब त्यहि पानीले गलाएको ड्यागहरु सम्माउने काम, पानीलाई level measuring tape मानि जता गहिरो उत्तैबाट ड्याग फाडन सुरु र अग्लो ठाउँबाट होचो ठाउँमा मरि मरि फालेको माटो। जति सम्म बनाउन सक्यो त्यति धेरै धान फल्छ भन्ने सिकाई। यसरी ड्याग सम्माइ, रोपाईको लागि तयार र रोपाई भोलि ।

आज रोपाई, बिहानै अाज उठ बाबु भोलि सुत्लास् झट्टो गरी ब्याडमा चिया पुराइ आउ भनि आमाले अराएको मिठो बोलि।

उठि रातो चियाको थरमस, गिलास लिइ ब्याडमा पुगि, जरामा समाइ काटेको धानको बिउ र बिउ काट्दै जादा कुन सर्कोमा कमिला तिघ्रामा चडि, रातो हुने गरी चिसिक पार्ने। बिउको मुठ्ठा पनि तयार भो, अब बिहानको खाना खाने बेला अनि अाज चाडै सक्नु पर्छ चाडै आएर बाउसे गर्नु है भन्दै सब अा-आफ्नो घर खाना खान।

खाना खाई कोदाली, घुम र पुजाको सरसामान ली पधेरामा गई पुर्व फर्की नाग देवतालाई निगालोमा राखेको कपास चढाइ गरेको पुजा र खेतमा पुगि दुइटा मुठोको बिउ र कलश राखि गरेको पुजासगै निधारमा रातो टिका।

अब रोपारहरु बिउ अोसार्ने, म चाही लाठे बाउसे गर्ने, अाली काटि बाउसे सुरु र जति सकिन्छ त्यति सम्म बनाउनु पर्ने। कोदालीले दायाँ-बायाँ गर्दै समाएर अग्लो देखिएको ठाउँको माटो होचो ठाउँमा फाल्दै अगि बढ्ने। हामी लाठेले सम्माएको ठाउँमा रोपारहरु छुप्लुप छुप्लुप रोप्न सुरु। हामी सम्माउने निउँमा छिन-छिनमा रोपार तिर फालेको माटोले रोपारलाई नित्थुक बनाई रमाइलो गर्ने। रोपारेहरु लामो भाका हाली गीत गाउदै रोप्ने।बर्षायाम पानी परेसँगै घुम अोड्नु र रोकिएसगँ घुम राख्नु।

अोहो त्यो उसिनेको अालुको अचार त्यसमा उसिनेकै हरियो खुर्सानी, भटमास र लसुनको अचार अनि टाइचिन चामलको चिउरा उफ मुखबाट पानि नै निक्लियो नि।

मसला बाढने काम, कसलाई ठुलो नरिवल र धेरै चक्लेट भन्दै कुदा कुद।

योसगँ मुरीका मुरी धान फल्ने आश र भरोसासगँ रातको मिठो निन्द्रा तर पारी पट्टी र जस्ताको छानामा चाही अजै तप तप गरि आवज आइरहेको छ तर पनि मस्त निन्द्रालाई रोक्न सक्ने कोही छैन।

मैले त रोपाई गरी सुत्न थाले तपाईको के छ स्थिति।

मैले नि केहि त गर्नु पर्यो भनि पुरै सोच र planning मा थिए। Plan के भन्दा “भट्टी Valley (BV)”

Weekend, bhanna sath Party, पार्टी भन्ना साथ Beer यो तालि चाहि “Guinness Beer”, Beer हुनासाथ लेखाइ सुरु।

धेरै केटाहरुले किन लेखिन्स भनि सोधे, देशमा भुकम्प गएर थन्थिलो पारेको थियो त्यस लगत्तै तराइ आन्दोलन, देश जरजर अवश्थामा मैले नि केहि त गर्नु पर्यो भनि पुरै सोच र planning मा थिए। Plan के भन्दा “भट्टी Valley (BV)” खोल्ने।

beer plant

क्षेत्रफल २०० रोपनी भन्दा बढि, कुल लागतः २ खर्ब १ रुपया।

१ रुपया चाही मैले जम्मा गरी सके, अब अरु साथी भाइलाई Investment ko सुर्वण अवसर!!!!

Planning चित्रमा देखाइएको छ।
1. पाहडको टुप्पामा भट्टी Hotel in beer bottle-shaped architecture
2. Vatti Bank
3. Cable Car loading/unloading section for भट्टी Hotel called it as CAN 2.
4. Helipad
5. Garden section
6. Water and Bottling Plant
7. Exit Road
8. Poultry farm
9. Cattle farm
10. फापर बारी
11. Parking lot 3
12. Recreation Center
13. कोदो बारी
14. Road
15. Tori Bari
16. Vatti Research and Development
17. Great Wall of Vatti Valley
18. The University of भट्टी
19. Entrance for Vatti Valley
20. Gate 1 is for the cable car
21. Gate 2 is for Road
22. Gate 3 is for Exit
23. Entry Road
24. Parking lot 2
25. Coming soon……..
26. Parking lot 1
27. भट्टी Valley market
28. Exit road
29. Cable car 1 in shape of CAN beer to return from Vatti hotel
30. Cable car 2 in shape of CAN beer to go to Vatti hotel
31. Security 1
32. Security 2

सब कुरा राखि सकेको छैन, नत्र आइडा चोरी होला भन्ने पनि डर छ नि

‪#‎हावाकुरारिलोढेड‬ ‪#‎Kuro‬ haha

Happy Weekend

हिजोसम्म “कहाँ पुग्ने हो दाइ ?” भनेर सोध्ने बसको कन्डक्टर आजदेखी “कहाँ पुग्ने अंकल ?

हिजोसम्म “कहाँ पुग्ने हो दाइ ?” भनेर सोध्ने बसको कन्डक्टर आजदेखी “कहाँ पुग्ने अंकल ? ” पो भन्छ बा ! बुढो भइयो कि क्या हो ?
अनि बुढो भएर अजै Single uff, अनि फेरि सम्झे अनि हासे सोच्दै,
Batman single, Superman single
Spiderman single, Hanuman single
हाम्रा Salman single
भने सी ममा पनि केहि हुनु पर्छ Single हुनुको राज !!!!
Happy Weekend 🙂

Bokagiri part 8: मेरो ट्वाके साथीको कथा

शर्षकः मेरो ट्वाके साथीको कथा
नेपालमा जाड भन्ने अहिले WINE भन्न थालेछन् अनि के हो सर आज त केहि अपडेट छैन् त बोकागीरीको भनि पेल्नु भो अनि रिसले अाधा रातमा भए पनि लेख्न सुरु गरे। लेख्दै छु मेरा ट्वाके साथीहरुको प्रेम कथा।

यस्तो पनि हुदो रैछ, सगै जाडँ खाने means ट्वाके साथी, अब त Chat boy भएछन् नि। च्याट गरी नै केटी पट्टाउने सुरमा रैछन् नी। Skype ma mero twake sathi ko call aucha
Twake sathi: k cha Rupak सर
Ma: Sab thik cha ani buda k cha tapai ko
(huna ta ma vanda dherai thula ta hoinan tara pani samma ko rup ma buda vanchu ma)
Twake sathi: ma ta achel office ko project vanda pani Chat ma besta huncha Rupak sir
Ma: kasare
Twake sathi: Timro lagi bhauju milaudai chu
Ma: Ha ha buda sachi la badai cha la mero lagi pani khojidinu hai (mero bokagiri) ani bhauju kasto hunu huncha ta
Twake sathi: babu ley जुत्तामा हेर्दामा ठुलो हेर बुहारी हेर्दामा सानोमा हेर bhannu vako ley ali dalli heriyako chu
Ani mero uhi मिठो haso ha ha ha ani buda kasare bhetnu vota
च्याटबाट सर, उनीले च्याट सुरु गरिन अनि सोधिन् के छ नयाँ भनि अनि म पनि के कम, एउटा नयाँ फोन छ तर यसमा एउटा कुरा मिसिङ्ग छ भनि, अनि उनले सोधिन् के कुरा भनि अनि मैले तिम्रो नम्बर भनि अनि त केटी हासी, अनि रुपक सरलाई थाहा होला केटी हासी तो फसी अनि रुपक सर धेरै दिन सम्म कुरा भो मतलब च्याट भो अनि एक दिन च्याटमा यस्तै उस्तै कुरा हुदै थियो अनि के भो थाहा छ।
मः मलाई कसरी थाहा हुनु नि दाइ
ट्वाके साथीः मोरीले, तँ को भनि अनि त म छक्क अनि त म उसको boy friend तँ को भन्यो अनि बल्क नै गरिदियो नि यसरी नै नेपालमा भुइचालोले आएर जसरी तहस नहस पार्यो तेसरी नै मेरो कहानि सकियो नि रुपक सर।
जय मेरा साथीहरु यसो पेलान परे माफी पाम यसमा तीन जानााको काहानी मिस्रित छ अनेथा नलिनु होला मनोरनजनको रुपमा लिनु होला
जय सपतान्न

Bokagiri part 7: Bokagiri Overloaded again

मेरो बोकागिरीको कथा, नेपालले किनेको चाइनिज जाहाज जस्तै भो, जाहाज ग्राउनडेड गर्ने कि उडाउने भा जस्तै मेरो बोकागिरीलाई पनि अगाडी लाने कि नलाने भन्ने कुरामा दुबिदा उत्पन्न भाको अवश्था, बिषय नै गलत भाको जस्तो लाग्यो ।।।

तर केहि छैन् जय बोकागिरी भन्दै meetup.com मा event haru khojna thalee.
Volleyball khelney thau bhatee Monday, Wednesday ra Saturday khelda raichan, ma basne thau vanda 25 min tada. Volleyball khelney ta neu matra thiyoo last ma teai ta ho ne bokagiri ko soch.
Monday को काम सकि लागे Volleyball खेल्न, धन्न खेर गएन मेरो मिहिनेत दुई जान प्वाँट टिममा सक्किगो नि।।

बच्चै देखिको lifter लिए मेरो पोजिसन र आफ्नो प्रतिभा प्रस्फुटन गर्न थाले।। Lift गर्यो अनि मोरी उफ्रिउफ्रि सट हान्थी मेरो पापी आखाँ कता कता पुग्थ्यो कता कता उफ।। अज सट हानेसी हात जुदाइ आंक्माल नै गरेसी सक्कि गो नि उफ।। कुनै ठुलो कुरा त थिएन तर पनि किन हो किन अर्कै तरंग महसुस भाको स्थिति।। एउटा खेल सकियो अनि मैेले नि गफ चुट्न थाले। एउटै कुरा तिन पल्ट भन्नु परे पनि म पछि हटिन, लामो कुरा भो, अनि अर्को गेम अनि गफ, ,अनि अर्को गेम अनि गफ, अनि घर, घर फर्किदा देखि नै के के सोच आयो आयो नि, Tuesday samma ma euta मायालु पत्र नै लेख्ने सोचमा पुगे र लेखे पनि। अनि wednesday लागे खेल मैदान तिर, पहिलो खेल सकियो, गफ भो, दोस्रो खेल भो गफ भो, तेस्रोमा त दिने अठोट गरे, तेस्रो खेल सकियो, अनि गफ हुदै थियो, एक्कासी उमेर सोध्न पुगे, मोरीले नि जवाफ दि १८ भनि।। अनि अाफैलाई कता कता के नमिलेको नमिलेको जस्तो लाग्यो, मोरीको भख्खर लाउ लाउ खाउ खाउ उमेर रैछ तै पनि यो मेरो आखाँ बच्चै देखि कमजोर यसमा पनि धोखा खाको महसुस भो अनि मेरो मायालु पत्र काचाककुचुक पारिदे अनि उहि निरास मुद्रामा फर्के बास स्थिन तिर।।

Thursday sakiyo, Friday sakiyo, Saturday aiyoo abba yo tali bokagiri na garee afnu health ko lagi vaiyee ne खेल्ने सोचले लागे खेल मैदानमा, अाज मोरीलाइ कतै देखिन, मतलबको कुरा त थिएन तर पनि मन न हो कौतुहल समालन गारो अनि मन थाम्नै नसकि मोरीको साथिलाई सोधे।। Where is Elsa Today? भनि।
उत्तर: She eloped with 29 years old guy . Do you believe that ? rey
थक थक मानि, अनि मैले काचाककुचुक पारि फालेको मायालु पत्र खोज्न थाले। अरु कुनै दिन काम लाग्ला भनि 🙂 अनि “Mere sapnon ki rani kab aayegi tu Aayi rut mastaani kab aayegi tu” कसैले नसुने पनि आफै गुनगुनाउदै घर फर्के ।।।

Bokagiri Overloaded again.

आनन्ददायी सप्ताहन्त