Hotels booking

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Hi Andria,

I'd like to share some code regarding customizing nc1.8 to serve the travel industry by hiding  the shopping cart but still use it for hotel booking,car rental,packages ..

I haven't uploded yet this site .

Can I share my code|? how can I uplode it as the entire solution is modified?
Thanks.
13 years ago
Sure, you're always welcome to contribute to nopCommerce. You can upload your changes to any file hosting and share the link here
12 years ago
Keem wrote:
Hi Andria,

I'd like to share some code regarding customizing nc1.8 to serve the travel industry by hiding  the shopping cart but still use it for hotel booking,car rental,packages ..

I haven't uploded yet this site .

Can I share my code|? how can I uplode it as the entire solution is modified?
Thanks.


Hi Keem,

         Thats great idea to help the community. Even I am looking for guidance on how to customize nopcommerce for travel industry as i am new to nopcommerce. It would be great if you can share your code.


         Thanks a lot in advance.

Regards,
Rajesh
12 years ago
I am very interested in this! Look forward to seeing your work. Thank you in advance. Is this something that can be added to future nop versions since the main code has already been created?
12 years ago
Hello Andria,

I developed some projects for tourism market.
If you need some assistance in your project, share the code with nopCommerce community! =D

Thanks,

Widmeyer


sunilb wrote:
Hi Andria,

I'd like to share some code regarding customizing nc1.8 to serve the travel industry by hiding  the shopping cart but still use it for hotel booking,car rental,packages ..

I haven't uploded yet this site .

Can I share my code|? how can I uplode it as the entire solution is modified?
Thanks.

Hi Keem,

         Thats great idea to help the community. Even I am looking for guidance on how to customize nopcommerce for travel industry as i am new to nopcommerce. It would be great if you can share your code.


         Thanks a lot in advance.

Regards,
Rajesh
12 years ago
Hi all,
        Thank you all for yoy intrest,I apologize for being late ,but I work on my project as part time so I think I need
     more time to finish some features. I didn't expect all that intrest as I hope my humbel code will be helpful for you.  
    
    The sit is not uploaded yet,once finshied I will share my test link here.

     But for now if you are intrested,I can disscuss my code. (for NC 1.8)
  
      First we have some buss.rules from some friends of mine in the travel market (they are not developers):
    
     1-There is no shopping cart nor booking list in the travel market.(i.e. visit booking.com)
     2-No shipping fees when booking!(i.e. we cann't use Shipping : Not required with all respect to NC)
     3-we must consider Arrival & Departure dates as part of product features.


    Let's start by first item,the shooping cart!
    After many tries & desgins,I finally thought of hideing the Shopping cart but still use it!
    
    We'll be adding a new bool setting that is Keem (you are free to chose whatever you like,just make sure it is
    unique   to  you to distinguage it from NC)


    This means that when Keem is true ,I 'l be using my custom code ,If false ,I'll be using original NC code,
    I alwys use that to easily split my custom code from original NC code.

    Our code block for this will be something like that:
  

   if(SettingManger.GetBoolValue("Keem"))
   {
         //our custom code
   }
   else
   {  
        //Original NC code block

   }


    I'll try to collect all code custom lines from all files concerning hideing the SC & post it soon .
12 years ago
Probably, you are going to use all the resources of "Shopping Cart" but will not show in the store.
As I told you, I already developed some tourism websites and we did not use this platform.
So, I would appreciate if you can share your ideas (comercial and propose) with us to help you.

I have a particular interest to transform nopCommerce plataform in a travel platform and so, my e-mail is [email protected]

Thanks,

Widmeyer Lisboa .´.
12 years ago
Hi  widmeyer , It is my pleasure to share knowledge with you .
    
      my e-mail is [email protected]
12 years ago
Interesting.
12 years ago
Hi all,sorry for beaing so late.

If you are intrested in my code ,please set ip a fresh copy of NC 1.8 to work on it,PLEASE never use your existing working copy as I'm not responsible for the code test.


  To hide all shipping matters for front end.

1-Log in as Admin,Disable whishlist,mini shopping cart.

2-Using SSMS,
    
//our proprty to run the custom code
insert Nop_Setting
(Name,Value,Description)
values
('Keem.ShoppingCart.Hide','True','Direct Booking')

//Disable  shipping & Download
update  Nop_ProductVariant
set IsShipEnabled = 0,IsDownload=0


3- open OrderTotals.ascx.cs in Source view, my code modification is BOLD Italic

<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.OrderTotalsControl"
    CodeBehind="OrderTotals.ascx.cs" %>
<div class="total-info">
    <table class="cart-total">
        <tbody>
            <tr>
                <td class="cart_total_left">
                    <strong>
                        <%=GetLocaleResourceString("ShoppingCart.Sub-Total")%>:</strong>
                </td>
                <td class="cart_total_right">
                    <span style="white-space: nowrap;">
                        <asp:Label ID="lblSubTotalAmount" runat="server" CssClass="productPrice" />
                    </span>
                </td>
            </tr>

            

            <%if(!SettingManager.GetSettingValueBoolean("Keem.ShoppingCart.Hide")){%>            
            
             <tr>
               <td class="cart_total_left">
                    <strong>
                       <%=GetLocaleResourceString("ShoppingCart.Shipping")%>:</strong>
                </td>
            
                <td class="cart_total_right">
                    <span style="white-space: nowrap;">
                        <asp:Label ID="lblShippingAmount" runat="server" CssClass="productPrice"/>
                    </span>
                </td>
            </tr>
          
            <asp:PlaceHolder runat="server" ID="phPaymentMethodAdditionalFee">
                <tr>
                    <td class="cart_total_left">
                        <strong>
                            <%=GetLocaleResourceString("ShoppingCart.PaymentMethodAdditionalFee")%>:</strong>
                    </td>
                    <td class="cart_total_right">
                        <span style="white-space: nowrap;">
                            <asp:Label ID="lblPaymentMethodAdditionalFee" runat="server" CssClass="productPrice" />
                        </span>
                    </td>
                </tr>
            </asp:PlaceHolder>
            
           <%} %>        


            <asp:Repeater runat="server" ID="rptrTaxRates" OnItemDataBound="rptrTaxRates_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td class="cart_total_left">
                            <strong>
                                <asp:Literal runat="server" ID="lTaxRateTitle"></asp:Literal>:</strong>
                        </td>
                        <td class="cart_total_right">
                            <span style="white-space: nowrap;">
                                <asp:Literal runat="server" ID="lTaxRateValue"></asp:Literal>
                            </span>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <asp:PlaceHolder runat="server" ID="phTaxTotal">
                <tr>
                    <td class="cart_total_left">
                        <strong>
                            <%=GetLocaleResourceString("ShoppingCart.Tax")%>:</strong>
                    </td>
                    <td class="cart_total_right">
                        <span style="white-space: nowrap;">
                            <asp:Label ID="lblTaxAmount" runat="server" CssClass="productPrice" />
                        </span>
                    </td>
                </tr>
            </asp:PlaceHolder>
            <asp:PlaceHolder runat="server" ID="phDiscount" Visible="false">
                <tr>
                    <td class="cart_total_left">
                        <strong>
                            <%=GetLocaleResourceString("ShoppingCart.OrderDiscount")%>:</strong>
                    </td>
                    <td class="cart_total_right">
                        <span style="white-space: nowrap;">
                            <asp:Label ID="lblDiscountAmount" runat="server" CssClass="productPrice" />
                        </span>
                    </td>
                </tr>
            </asp:PlaceHolder>
            <asp:Repeater runat="server" ID="rptrGiftCards" OnItemDataBound="rptrGiftCards_ItemDataBound"
                Visible="false" OnItemCommand="rptrGiftCards_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <td class="cart_total_left">
                            <strong>
                                <asp:Literal runat="server" ID="lGiftCard"></asp:Literal><asp:LinkButton runat="server"
                                    ID="btnRemoveGC" Text="" CommandName="remove" CommandArgument='<%# Eval("GiftCardId")%>'
                                    CssClass="removegiftcardbutton" />:</strong>
                        </td>
                        <td class="cart_total_right">
                            <span style="white-space: nowrap;">
                                <asp:Label ID="lblGiftCardAmount" runat="server" CssClass="productPrice" />
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td class="cart_total_left_below">
                            <asp:Literal runat="server" ID="lGiftCardRemaining"></asp:Literal>
                        </td>
                        <td>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <asp:PlaceHolder runat="server" ID="phRewardPoints">
                <tr>
                    <td class="cart_total_left">
                        <strong>
                            <asp:Literal runat="server" ID="lRewardPointsTitle"></asp:Literal>:</strong>
                    </td>
                    <td class="cart_total_right">
                        <span style="white-space: nowrap;">
                            <asp:Label ID="lblRewardPointsAmount" runat="server" CssClass="productPrice" />
                        </span>
                    </td>
                </tr>
            </asp:PlaceHolder>
            <tr>
                <td class="cart_total_left">
                    <strong>
                        <%=GetLocaleResourceString("ShoppingCart.OrderTotal")%>:</strong>
                </td>
                <td class="cart_total_right">
                    <span style="white-space: nowrap;">
                        <asp:Label ID="lblTotalAmount" runat="server" CssClass="productPrice" />
                    </span>
                </td>
            </tr>
        </tbody>
    </table>
</div>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.